diff options
author | rollenrolm <rollenrolm@users.noreply.github.com> | 2015-03-21 18:33:32 +0100 |
---|---|---|
committer | rollenrolm <rollenrolm@users.noreply.github.com> | 2015-03-21 18:33:32 +0100 |
commit | db0a71fc58137da99137e9fbea3ee982679c9afd (patch) | |
tree | 2f5231a6e20f12d9fcc9e9799d986b4ecac38699 /platform/android | |
parent | 40496dd76ae53c93ef5ea7e56671682a7cae9def (diff) |
New option to show/hide hidden files
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/dir_access_android.cpp | 3 | ||||
-rw-r--r-- | platform/android/dir_access_android.h | 1 | ||||
-rw-r--r-- | platform/android/dir_access_jandroid.cpp | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/dir_access_android.cpp b/platform/android/dir_access_android.cpp index 60bde61fc4..80311e5a08 100644 --- a/platform/android/dir_access_android.cpp +++ b/platform/android/dir_access_android.cpp @@ -79,6 +79,9 @@ bool DirAccessAndroid::current_is_dir() const{ return false; } +bool DirAccessAndroid::current_is_hidden() const{ + return current!="." && current!=".." && current.begins_with("."); +} void DirAccessAndroid::list_dir_end(){ if (aad==NULL) diff --git a/platform/android/dir_access_android.h b/platform/android/dir_access_android.h index a6aead6eb3..57683542fa 100644 --- a/platform/android/dir_access_android.h +++ b/platform/android/dir_access_android.h @@ -52,6 +52,7 @@ public: virtual bool list_dir_begin(); ///< This starts dir listing virtual String get_next(); virtual bool current_is_dir() const; + virtual bool current_is_hidden() const; virtual void list_dir_end(); ///< virtual int get_drive_count(); diff --git a/platform/android/dir_access_jandroid.cpp b/platform/android/dir_access_jandroid.cpp index f32e16e7d8..fda4ca7357 100644 --- a/platform/android/dir_access_jandroid.cpp +++ b/platform/android/dir_access_jandroid.cpp @@ -105,6 +105,9 @@ bool DirAccessJAndroid::current_is_dir() const{ return true; } +bool DirAccessAndroid::current_is_hidden() const{ + return current!="." && current!=".." && current.begins_with("."); +} void DirAccessJAndroid::list_dir_end(){ if (id==0) |