Fix upload and delete to actually delete

Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
Unpublished 2019-08-01 11:04:51 +02:00
parent 51fca2c807
commit 1cb125a464

View file

@ -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) {