From 9a730d8c0b1764e351ca5014cb3c45771e626770 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 2 Oct 2020 19:56:58 +0200 Subject: [PATCH] use a constant for equals statement Signed-off-by: Andy Scherzinger --- src/main/java/com/owncloud/android/files/FileMenuFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/files/FileMenuFilter.java b/src/main/java/com/owncloud/android/files/FileMenuFilter.java index c73793a4d1..576c4996a6 100644 --- a/src/main/java/com/owncloud/android/files/FileMenuFilter.java +++ b/src/main/java/com/owncloud/android/files/FileMenuFilter.java @@ -58,6 +58,7 @@ import androidx.annotation.Nullable; public class FileMenuFilter { private static final int SINGLE_SELECT_ITEMS = 1; + public static final String SEND_OFF = "off"; private int numberOfAllFiles; private Collection files; @@ -225,7 +226,7 @@ public class FileMenuFilter { private void filterSendFiles(List toShow, List toHide) { if (containsEncryptedFile() || isSingleSelection() || overflowMenu || !anyFileDown() || - "off".equalsIgnoreCase(context.getString(R.string.send_files_to_other_apps))) { + SEND_OFF.equalsIgnoreCase(context.getString(R.string.send_files_to_other_apps))) { toHide.add(R.id.action_send_file); } else { toShow.add(R.id.action_send_file);