From 488663a8adeb57395324186c505349c7bba85381 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 5 Dec 2024 12:39:11 +0100 Subject: [PATCH] correct warning on delete/move Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/activity/FileDisplayActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 52f5ad739879..2b64bce92d3a 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -311,7 +311,8 @@ private void checkAutoUploadOnGPlay() { boolean showInfoDialog = false; for (SyncedFolder syncedFolder : syncedFolderProvider.getSyncedFolders()) { // move or delete after success - if (syncedFolder.getUploadAction() == 1 || syncedFolder.getUploadAction() == 2) { + if (syncedFolder.getUploadAction() == FileUploadWorker.LOCAL_BEHAVIOUR_MOVE || + syncedFolder.getUploadAction() == FileUploadWorker.LOCAL_BEHAVIOUR_DELETE) { showInfoDialog = true; break; }