Skip to content

Commit aa29235

Browse files
Merge pull request #14132 from nextcloud/backport/14128/stable-3.30
[stable-3.30] correct warning on delete/move
2 parents 86da762 + 488663a commit aa29235

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)