From f5956de0e9b1c7ace3c2d001044463306238a659 Mon Sep 17 00:00:00 2001 From: rishabh7m Date: Mon, 23 Nov 2015 02:18:51 +0530 Subject: [PATCH] bug_906_log_1 --- src/com/owncloud/android/media/MediaService.java | 2 -- .../owncloud/android/ui/dialog/RemoveFileDialogFragment.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/com/owncloud/android/media/MediaService.java b/src/com/owncloud/android/media/MediaService.java index 16779ba1340..f5709ec18f8 100644 --- a/src/com/owncloud/android/media/MediaService.java +++ b/src/com/owncloud/android/media/MediaService.java @@ -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} */ @@ -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); diff --git a/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java b/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java index 3d6cb728e14..ebea5f10aec 100644 --- a/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java +++ b/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java @@ -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); }