Skip to content

Commit

Permalink
bug_906_log_1
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh7m committed Nov 22, 2015
1 parent f0d13fa commit f5956de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/com/owncloud/android/media/MediaService.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
public static final String EXTRA_ACCOUNT = MY_PACKAGE + ".extra.ACCOUNT";
public static String EXTRA_START_POSITION = MY_PACKAGE + ".extra.START_POSITION";
public static final String EXTRA_PLAY_ON_LOAD = MY_PACKAGE + ".extra.PLAY_ON_LOAD";
public static final String EXTRA_FILE_REMOTE_PATH = MY_PACKAGE + ".extra.FILE_REMOTE_PATH";


/** Error code for specific messages - see regular error codes at {@link MediaPlayer} */
Expand Down Expand Up @@ -255,7 +254,6 @@ public int onStartCommand(Intent intent, int flags, int startId) {

private void processStopFileRequest(Intent intent) {
OCFile file = intent.getExtras().getParcelable(EXTRA_FILE);
String remotePath = intent.getExtras().getString(EXTRA_FILE_REMOTE_PATH);
try {
if(file.equals(mFile)) {
processStopRequest(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ public void onConfirmation(String callerTag) {
FileDataStorageManager storageManager = cg.getStorageManager();
OCFile ocFile = storageManager.getFileById(mTargetFile.getFileId());
if (ocFile != null) {
String remotePath = ocFile.getRemotePath();
cg.getFileOperationsHelper().removeFile(mTargetFile, false);
Intent i = new Intent(getActivity(), MediaService.class);
i.putExtra(MediaService.EXTRA_FILE, ocFile);
i.putExtra(MediaService.EXTRA_FILE_REMOTE_PATH, remotePath);
i.setAction(MediaService.ACTION_STOP_FILE);
getActivity().startService(i);
}
Expand Down

0 comments on commit f5956de

Please sign in to comment.