From 6ab6f7c46f6fd73529192d2789d3986602c6e7d9 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 bbcad936f2..955e3e8769 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 @@ -313,7 +313,8 @@ public class FileDisplayActivity extends FileActivity 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; }