mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Fix upload and delete to actually delete
Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
parent
51fca2c807
commit
1cb125a464
1 changed files with 1 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue