Skip to content

Commit 488663a

Browse files
tobiasKaminskybackportbot[bot]
authored andcommitted
correct warning on delete/move
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 27240aa commit 488663a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ private void checkAutoUploadOnGPlay() {
311311
boolean showInfoDialog = false;
312312
for (SyncedFolder syncedFolder : syncedFolderProvider.getSyncedFolders()) {
313313
// move or delete after success
314-
if (syncedFolder.getUploadAction() == 1 || syncedFolder.getUploadAction() == 2) {
314+
if (syncedFolder.getUploadAction() == FileUploadWorker.LOCAL_BEHAVIOUR_MOVE ||
315+
syncedFolder.getUploadAction() == FileUploadWorker.LOCAL_BEHAVIOUR_DELETE) {
315316
showInfoDialog = true;
316317
break;
317318
}

0 commit comments

Comments
 (0)