mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #2803 from nextcloud/switchWithDefault
use default in switch
This commit is contained in:
commit
1e2240e812
1 changed files with 5 additions and 3 deletions
|
@ -999,9 +999,7 @@ public class FileDisplayActivity extends HookActivity
|
|||
remotePaths[j] = remotePathBase + (new File(filePaths[j])).getName();
|
||||
}
|
||||
|
||||
// default, as fallback
|
||||
int behaviour = FileUploader.LOCAL_BEHAVIOUR_FORGET;
|
||||
|
||||
int behaviour;
|
||||
switch (resultCode) {
|
||||
case UploadFilesActivity.RESULT_OK_AND_MOVE:
|
||||
behaviour = FileUploader.LOCAL_BEHAVIOUR_MOVE;
|
||||
|
@ -1014,6 +1012,10 @@ public class FileDisplayActivity extends HookActivity
|
|||
case UploadFilesActivity.RESULT_OK_AND_DO_NOTHING:
|
||||
behaviour = FileUploader.LOCAL_BEHAVIOUR_FORGET;
|
||||
break;
|
||||
|
||||
default:
|
||||
behaviour = FileUploader.LOCAL_BEHAVIOUR_FORGET;
|
||||
break;
|
||||
}
|
||||
|
||||
FileUploader.UploadRequester requester = new FileUploader.UploadRequester();
|
||||
|
|
Loading…
Reference in a new issue