diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-10-03 20:26:01 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-10-03 22:54:37 +0200 |
commit | c320161f48990fbf6cad162633b26e07de873923 (patch) | |
tree | 43fefe22548d6678b1ac024bf29b80f4387f7035 /android | |
parent | 7b282e3db8cc608373d09e49dba57945be07f895 (diff) |
compare strings using equals, not with ==
Change-Id: I8869980198123bbe9e86e12638e3316be24588c3
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/FileUtilities.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java b/android/source/src/java/org/libreoffice/ui/FileUtilities.java index 3455b9c0742a..6ae8310ad72d 100644 --- a/android/source/src/java/org/libreoffice/ui/FileUtilities.java +++ b/android/source/src/java/org/libreoffice/ui/FileUtilities.java @@ -160,7 +160,7 @@ public class FileUtilities { if (filename == null) return false; - if (byMode == ALL && byFilename == "") { + if (byMode == ALL && byFilename.equals("")) { if (filename.startsWith(".")) {//ignore hidden files return false; } @@ -171,7 +171,7 @@ public class FileUtilities { if (mExtnMap.get (getExtension (filename)) != byMode) return false; } - if (byFilename != "") { + if (!byFilename.equals("")) { // FIXME return false on a non-match } return true; |