From 1cb125a4642e76f75847dc9ef0919a4c0265abe6 Mon Sep 17 00:00:00 2001 From: Unpublished Date: Thu, 1 Aug 2019 11:04:51 +0200 Subject: [PATCH] Fix upload and delete to actually delete Signed-off-by: Unpublished --- .../android/ui/activity/FileDisplayActivity.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 1d7f1a08a5..a6d5b15400 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1051,14 +1051,7 @@ public class FileDisplayActivity extends FileActivity private void requestUploadOfFilesFromFileSystem(Intent data, int resultCode) { String[] filePaths = data.getStringArrayExtra(UploadFilesActivity.EXTRA_CHOSEN_FILES); - int behaviour; - - if (resultCode == UploadFilesActivity.RESULT_OK_AND_MOVE) { - behaviour = FileUploader.LOCAL_BEHAVIOUR_MOVE; - } else { - behaviour = FileUploader.LOCAL_BEHAVIOUR_COPY; - } - requestUploadOfFilesFromFileSystem(filePaths, behaviour); + requestUploadOfFilesFromFileSystem(filePaths, resultCode); } private void requestUploadOfFilesFromFileSystem(String[] filePaths, int resultCode) {