[Libreoffice-commits] core.git: android/source

Mert Tümer merttumer7 at gmail.com
Fri Jun 1 02:32:57 UTC 2018


 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |   12 +++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit 9d2f37474b5420def2ad3c41074d3f20b86363f8
Author: Mert Tümer <merttumer7 at gmail.com>
Date:   Thu May 24 17:28:08 2018 +0300

    tdf#117777 fix show hidden files/folders option on Android
    
    Change-Id: Ic80ca7f8ebb93f78a58cc0ad778db90deb0c51ba
    Signed-off-by: Mert Tümer <merttumer7 at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/54771
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

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;


More information about the Libreoffice-commits mailing list