replace the "Show hidden folders" option with "Show hidden media"
This commit is contained in:
parent
73313a73b5
commit
27becd9247
|
@ -56,10 +56,10 @@ class SettingsActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupShowHiddenFolders() {
|
private fun setupShowHiddenFolders() {
|
||||||
settings_show_hidden_folders.isChecked = config.showHiddenFolders
|
settings_show_hidden_folders.isChecked = config.showHiddenMedia
|
||||||
settings_show_hidden_folders_holder.setOnClickListener {
|
settings_show_hidden_folders_holder.setOnClickListener {
|
||||||
settings_show_hidden_folders.toggle()
|
settings_show_hidden_folders.toggle()
|
||||||
config.showHiddenFolders = settings_show_hidden_folders.isChecked
|
config.showHiddenMedia = settings_show_hidden_folders.isChecked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,11 @@ class Config(context: Context) : BaseConfig(context) {
|
||||||
get() = prefs.getBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, false)
|
get() = prefs.getBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, false)
|
||||||
set(wasShown) = prefs.edit().putBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, wasShown).apply()
|
set(wasShown) = prefs.edit().putBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, wasShown).apply()
|
||||||
|
|
||||||
var shouldShowHidden = showHiddenFolders || temporarilyShowHidden
|
var shouldShowHidden = showHiddenMedia || temporarilyShowHidden
|
||||||
|
|
||||||
var showHiddenFolders: Boolean
|
var showHiddenMedia: Boolean
|
||||||
get() = prefs.getBoolean(SHOW_HIDDEN_FOLDERS, false)
|
get() = prefs.getBoolean(SHOW_HIDDEN_MEDIA, false)
|
||||||
set(showHiddenFolders) = prefs.edit().putBoolean(SHOW_HIDDEN_FOLDERS, showHiddenFolders).apply()
|
set(showHiddenFolders) = prefs.edit().putBoolean(SHOW_HIDDEN_MEDIA, showHiddenFolders).apply()
|
||||||
|
|
||||||
var temporarilyShowHidden: Boolean
|
var temporarilyShowHidden: Boolean
|
||||||
get() = prefs.getBoolean(TEMPORARILY_SHOW_HIDDEN, false)
|
get() = prefs.getBoolean(TEMPORARILY_SHOW_HIDDEN, false)
|
||||||
|
|
|
@ -4,7 +4,7 @@ package com.simplemobiletools.gallery.helpers
|
||||||
val SORT_ORDER = "sort_order"
|
val SORT_ORDER = "sort_order"
|
||||||
val DIRECTORY_SORT_ORDER = "directory_sort_order"
|
val DIRECTORY_SORT_ORDER = "directory_sort_order"
|
||||||
val SORT_FOLDER_PREFIX = "sort_folder_"
|
val SORT_FOLDER_PREFIX = "sort_folder_"
|
||||||
val SHOW_HIDDEN_FOLDERS = "show_hidden_folders"
|
val SHOW_HIDDEN_MEDIA = "show_hidden_media"
|
||||||
val TEMPORARILY_SHOW_HIDDEN = "temporarily_show_hidden"
|
val TEMPORARILY_SHOW_HIDDEN = "temporarily_show_hidden"
|
||||||
val AUTOPLAY_VIDEOS = "autoplay_videos"
|
val AUTOPLAY_VIDEOS = "autoplay_videos"
|
||||||
val LOOP_VIDEOS = "loop_videos"
|
val LOOP_VIDEOS = "loop_videos"
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:paddingLeft="@dimen/medium_margin"
|
android:paddingLeft="@dimen/medium_margin"
|
||||||
android:paddingStart="@dimen/medium_margin"
|
android:paddingStart="@dimen/medium_margin"
|
||||||
android:text="@string/show_hidden_folders"/>
|
android:text="@string/show_hidden_media"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Zobrazit skryté složky</string>
|
<string name="show_hidden_media">Zobrazit skryté média</string>
|
||||||
<string name="autoplay_videos">Automaticky přehrávat videa</string>
|
<string name="autoplay_videos">Automaticky přehrávat videa</string>
|
||||||
<string name="toggle_filename">Přepnout viditelnost názvů souborů</string>
|
<string name="toggle_filename">Přepnout viditelnost názvů souborů</string>
|
||||||
<string name="show_media">Zobrazit média</string>
|
<string name="show_media">Zobrazit média</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Querformat</string>
|
<string name="landscape_aspect_ratio">Querformat</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Versteckte Ordner zeigen</string>
|
<string name="show_hidden_media">Versteckte Ordner zeigen</string>
|
||||||
<string name="autoplay_videos">Videos automatisch abspielen</string>
|
<string name="autoplay_videos">Videos automatisch abspielen</string>
|
||||||
<string name="toggle_filename">Beschriftungen ein/aus</string>
|
<string name="toggle_filename">Beschriftungen ein/aus</string>
|
||||||
<string name="show_media">Medien auswählen</string>
|
<string name="show_media">Medien auswählen</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Mostrar carpetas ocultas</string>
|
<string name="show_hidden_media">Mostrar carpetas ocultas</string>
|
||||||
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
||||||
<string name="toggle_filename">Cambiar la visibilidad del nombre de archivo</string>
|
<string name="toggle_filename">Cambiar la visibilidad del nombre de archivo</string>
|
||||||
<string name="show_media">Mostrar medios</string>
|
<string name="show_media">Mostrar medios</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Afficher les dossiers cachés</string>
|
<string name="show_hidden_media">Afficher les dossiers cachés</string>
|
||||||
<string name="autoplay_videos">Lecture automatique des vidéos</string>
|
<string name="autoplay_videos">Lecture automatique des vidéos</string>
|
||||||
<string name="toggle_filename">Permutter la visibilité des noms de fichier</string>
|
<string name="toggle_filename">Permutter la visibilité des noms de fichier</string>
|
||||||
<string name="show_media">Afficher les médias</string>
|
<string name="show_media">Afficher les médias</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Show hidden folders</string>
|
<string name="show_hidden_media">Show hidden media</string>
|
||||||
<string name="autoplay_videos">Play videos automatically</string>
|
<string name="autoplay_videos">Play videos automatically</string>
|
||||||
<string name="toggle_filename">Toggle filename visibility</string>
|
<string name="toggle_filename">Toggle filename visibility</string>
|
||||||
<string name="show_media">Show media</string>
|
<string name="show_media">Show media</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Mostra cartelle nascoste</string>
|
<string name="show_hidden_media">Mostra cartelle nascoste</string>
|
||||||
<string name="autoplay_videos">Riproduci video automaticamente</string>
|
<string name="autoplay_videos">Riproduci video automaticamente</string>
|
||||||
<string name="toggle_filename">Visibilità nome del file</string>
|
<string name="toggle_filename">Visibilità nome del file</string>
|
||||||
<string name="show_media">Show media</string>
|
<string name="show_media">Show media</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">非表示フォルダーを表示</string>
|
<string name="show_hidden_media">非表示フォルダーを表示</string>
|
||||||
<string name="autoplay_videos">自動的にビデオを再生</string>
|
<string name="autoplay_videos">自動的にビデオを再生</string>
|
||||||
<string name="toggle_filename">ファイル名の表示を切り替え</string>
|
<string name="toggle_filename">ファイル名の表示を切り替え</string>
|
||||||
<string name="show_media">Show media</string>
|
<string name="show_media">Show media</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Pokaż ukryte foldery</string>
|
<string name="show_hidden_media">Pokaż ukryte foldery</string>
|
||||||
<string name="autoplay_videos">Odtwarzaj pliki wideo automatycznie</string>
|
<string name="autoplay_videos">Odtwarzaj pliki wideo automatycznie</string>
|
||||||
<string name="toggle_filename">Włącz widoczność nazwy pliku</string>
|
<string name="toggle_filename">Włącz widoczność nazwy pliku</string>
|
||||||
<string name="show_media">Wybierz co pokazywać</string>
|
<string name="show_media">Wybierz co pokazywać</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Paisagem</string>
|
<string name="landscape_aspect_ratio">Paisagem</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Mostrar pastas ocultas</string>
|
<string name="show_hidden_media">Mostrar pastas ocultas</string>
|
||||||
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
||||||
<string name="toggle_filename">Mostrar/ocultar nome do arquivo</string>
|
<string name="toggle_filename">Mostrar/ocultar nome do arquivo</string>
|
||||||
<string name="show_media">Mostrar mídia</string>
|
<string name="show_media">Mostrar mídia</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">proporção na horizontal</string>
|
<string name="landscape_aspect_ratio">proporção na horizontal</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Mostrar pastas ocultas</string>
|
<string name="show_hidden_media">Mostrar pastas ocultas</string>
|
||||||
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
||||||
<string name="toggle_filename">Mostrar/ocultar nome do ficheiro</string>
|
<string name="toggle_filename">Mostrar/ocultar nome do ficheiro</string>
|
||||||
<string name="show_media">Mostrar multimédia</string>
|
<string name="show_media">Mostrar multimédia</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Пейзажное соотношение сторон</string>
|
<string name="landscape_aspect_ratio">Пейзажное соотношение сторон</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Показать скрытые папки</string>
|
<string name="show_hidden_media">Показать скрытые папки</string>
|
||||||
<string name="autoplay_videos">Воспроизводить видео автоматически</string>
|
<string name="autoplay_videos">Воспроизводить видео автоматически</string>
|
||||||
<string name="toggle_filename">Переключить отображение имени файла</string>
|
<string name="toggle_filename">Переключить отображение имени файла</string>
|
||||||
<string name="show_media">Отображать</string>
|
<string name="show_media">Отображать</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Orientácia naležato</string>
|
<string name="landscape_aspect_ratio">Orientácia naležato</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Zobraziť skryté priečinky</string>
|
<string name="show_hidden_media">Zobraziť skryté médiá</string>
|
||||||
<string name="autoplay_videos">Spúšťať videá automaticky</string>
|
<string name="autoplay_videos">Spúšťať videá automaticky</string>
|
||||||
<string name="toggle_filename">Prepnúť viditeľnosť názvov súborov</string>
|
<string name="toggle_filename">Prepnúť viditeľnosť názvov súborov</string>
|
||||||
<string name="show_media">Zobraziť médiá</string>
|
<string name="show_media">Zobraziť médiá</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Visa dolda mappar</string>
|
<string name="show_hidden_media">Visa dolda mappar</string>
|
||||||
<string name="autoplay_videos">Spela upp videos automatiskt</string>
|
<string name="autoplay_videos">Spela upp videos automatiskt</string>
|
||||||
<string name="toggle_filename">Visa/dölj filnamnen</string>
|
<string name="toggle_filename">Visa/dölj filnamnen</string>
|
||||||
<string name="show_media">Visa media</string>
|
<string name="show_media">Visa media</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Gizli klasörleri göster</string>
|
<string name="show_hidden_media">Gizli klasörleri göster</string>
|
||||||
<string name="autoplay_videos">Videoları otomatik olarak oynat</string>
|
<string name="autoplay_videos">Videoları otomatik olarak oynat</string>
|
||||||
<string name="toggle_filename">Dosya adı görünürlüğünü değiştir</string>
|
<string name="toggle_filename">Dosya adı görünürlüğünü değiştir</string>
|
||||||
<string name="show_media">Medyayı göster</string>
|
<string name="show_media">Medyayı göster</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">显示所有</string>
|
<string name="show_hidden_media">显示所有</string>
|
||||||
<string name="autoplay_videos">自动播放</string>
|
<string name="autoplay_videos">自动播放</string>
|
||||||
<string name="toggle_filename">显示文件名</string>
|
<string name="toggle_filename">显示文件名</string>
|
||||||
<string name="show_media">显示多媒体文件</string>
|
<string name="show_media">显示多媒体文件</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">秀出隱藏資料夾</string>
|
<string name="show_hidden_media">秀出隱藏資料夾</string>
|
||||||
<string name="autoplay_videos">自動播放影片</string>
|
<string name="autoplay_videos">自動播放影片</string>
|
||||||
<string name="toggle_filename">顯示檔案名稱</string>
|
<string name="toggle_filename">顯示檔案名稱</string>
|
||||||
<string name="show_media">秀出多媒體檔案</string>
|
<string name="show_media">秀出多媒體檔案</string>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="show_hidden_folders">Show hidden folders</string>
|
<string name="show_hidden_media">Show hidden media</string>
|
||||||
<string name="autoplay_videos">Play videos automatically</string>
|
<string name="autoplay_videos">Play videos automatically</string>
|
||||||
<string name="toggle_filename">Toggle filename visibility</string>
|
<string name="toggle_filename">Toggle filename visibility</string>
|
||||||
<string name="show_media">Show media</string>
|
<string name="show_media">Show media</string>
|
||||||
|
|
Loading…
Reference in New Issue