use a constant for equals statement

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-10-02 19:56:58 +02:00
parent cfdd3d4588
commit 9a730d8c0b
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -58,6 +58,7 @@ import androidx.annotation.Nullable;
public class FileMenuFilter { public class FileMenuFilter {
private static final int SINGLE_SELECT_ITEMS = 1; private static final int SINGLE_SELECT_ITEMS = 1;
public static final String SEND_OFF = "off";
private int numberOfAllFiles; private int numberOfAllFiles;
private Collection<OCFile> files; private Collection<OCFile> files;
@ -225,7 +226,7 @@ public class FileMenuFilter {
private void filterSendFiles(List<Integer> toShow, List<Integer> toHide) { private void filterSendFiles(List<Integer> toShow, List<Integer> toHide) {
if (containsEncryptedFile() || isSingleSelection() || overflowMenu || !anyFileDown() || 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); toHide.add(R.id.action_send_file);
} else { } else {
toShow.add(R.id.action_send_file); toShow.add(R.id.action_send_file);