Merge pull request #2803 from nextcloud/switchWithDefault

use default in switch
This commit is contained in:
Andy Scherzinger 2018-07-12 18:09:48 +02:00 committed by GitHub
commit 1e2240e812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();