[Android] Settings: set show_hidden default value to false

Duncan McNamara git at videolan.org
Mon Jan 9 07:02:00 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Tue Dec 20 10:11:06 2022 +0100| [d97b90aedeb8f30c02e40f82f21f7aedd73820b1] | committer: Nicolas Pomepuy

Settings: set show_hidden default value to false

On AndroidTV there is no ui to change this setting, by default hidden
files should stay hidden.

Fixes #2802

> https://code.videolan.org/videolan/vlc-android/commit/d97b90aedeb8f30c02e40f82f21f7aedd73820b1
---

 application/tools/src/main/java/org/videolan/tools/Settings.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/tools/src/main/java/org/videolan/tools/Settings.kt b/application/tools/src/main/java/org/videolan/tools/Settings.kt
index 0830f4e12f..1e6a10fbb8 100644
--- a/application/tools/src/main/java/org/videolan/tools/Settings.kt
+++ b/application/tools/src/main/java/org/videolan/tools/Settings.kt
@@ -48,7 +48,7 @@ object Settings : SingletonHolder<SharedPreferences, Context>({ init(it.applicat
         videoDoubleTapJumpDelay = prefs.getInt(KEY_VIDEO_DOUBLE_TAP_JUMP_DELAY, 10)
         audioJumpDelay = prefs.getInt(KEY_AUDIO_JUMP_DELAY, 10)
         audioLongJumpDelay = prefs.getInt(KEY_AUDIO_LONG_JUMP_DELAY, 20)
-        showHiddenFiles = prefs.getBoolean(BROWSER_SHOW_HIDDEN_FILES, true)
+        showHiddenFiles = prefs.getBoolean(BROWSER_SHOW_HIDDEN_FILES, !tvUI)
         showTrackNumber = prefs.getBoolean(ALBUMS_SHOW_TRACK_NUMBER, true)
         tvFoldersFirst = prefs.getBoolean(TV_FOLDERS_FIRST, true)
         return prefs



More information about the Android mailing list