diff options
author | Mert Tümer <merttumer7@gmail.com> | 2018-05-24 17:28:08 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-01 04:32:33 +0200 |
commit | 9d2f37474b5420def2ad3c41074d3f20b86363f8 (patch) | |
tree | 97a5c84063157949b950a8ff2d2d2dba27be8297 /android | |
parent | ea62d02cedd7b6c90ebcb0ce73e30dc6ddd342c8 (diff) |
tdf#117777 fix show hidden files/folders option on Android
Change-Id: Ic80ca7f8ebb93f78a58cc0ad778db90deb0c51ba
Signed-off-by: Mert Tümer <merttumer7@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/54771
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java index c2b939383d20..d7b0ab41c015 100644 --- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java +++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java @@ -435,8 +435,18 @@ public class LibreOfficeUIActivity extends AppCompatActivity implements Settings documentProvider = provider[0]; homeDirectory = documentProvider.getRootDirectory(LibreOfficeUIActivity.this); currentDirectory = homeDirectory; - filePaths = currentDirectory.listFiles(FileUtilities + List<IFile> paths = currentDirectory.listFiles(FileUtilities .getFileFilter(filterMode)); + filePaths = new ArrayList<IFile>(); + for(IFile file: paths) { + if(showHiddenFiles){ + filePaths.add(file); + } else { + if(!file.getName().startsWith(".")){ + filePaths.add(file); + } + } + } } catch (final RuntimeException e) { final Activity activity = LibreOfficeUIActivity.this; |