replace the "Show hidden folders" option with "Show hidden media"

This commit is contained in:
tibbi 2017-04-26 19:50:19 +02:00
parent 73313a73b5
commit 27becd9247
21 changed files with 25 additions and 25 deletions

View File

@ -56,10 +56,10 @@ class SettingsActivity : SimpleActivity() {
}
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.toggle()
config.showHiddenFolders = settings_show_hidden_folders.isChecked
config.showHiddenMedia = settings_show_hidden_folders.isChecked
}
}

View File

@ -40,11 +40,11 @@ class Config(context: Context) : BaseConfig(context) {
get() = prefs.getBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, false)
set(wasShown) = prefs.edit().putBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, wasShown).apply()
var shouldShowHidden = showHiddenFolders || temporarilyShowHidden
var shouldShowHidden = showHiddenMedia || temporarilyShowHidden
var showHiddenFolders: Boolean
get() = prefs.getBoolean(SHOW_HIDDEN_FOLDERS, false)
set(showHiddenFolders) = prefs.edit().putBoolean(SHOW_HIDDEN_FOLDERS, showHiddenFolders).apply()
var showHiddenMedia: Boolean
get() = prefs.getBoolean(SHOW_HIDDEN_MEDIA, false)
set(showHiddenFolders) = prefs.edit().putBoolean(SHOW_HIDDEN_MEDIA, showHiddenFolders).apply()
var temporarilyShowHidden: Boolean
get() = prefs.getBoolean(TEMPORARILY_SHOW_HIDDEN, false)

View File

@ -4,7 +4,7 @@ package com.simplemobiletools.gallery.helpers
val SORT_ORDER = "sort_order"
val DIRECTORY_SORT_ORDER = "directory_sort_order"
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 AUTOPLAY_VIDEOS = "autoplay_videos"
val LOOP_VIDEOS = "loop_videos"

View File

@ -84,7 +84,7 @@
android:clickable="false"
android:paddingLeft="@dimen/medium_margin"
android:paddingStart="@dimen/medium_margin"
android:text="@string/show_hidden_folders"/>
android:text="@string/show_hidden_media"/>
</RelativeLayout>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Přepnout viditelnost názvů souborů</string>
<string name="show_media">Zobrazit média</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Querformat</string>
<!-- 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="toggle_filename">Beschriftungen ein/aus</string>
<string name="show_media">Medien auswählen</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Cambiar la visibilidad del nombre de archivo</string>
<string name="show_media">Mostrar medios</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Permutter la visibilité des noms de fichier</string>
<string name="show_media">Afficher les médias</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Toggle filename visibility</string>
<string name="show_media">Show media</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Visibilità nome del file</string>
<string name="show_media">Show media</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Settings -->
<string name="show_hidden_folders">非表示フォルダーを表示</string>
<string name="show_hidden_media">非表示フォルダーを表示</string>
<string name="autoplay_videos">自動的にビデオを再生</string>
<string name="toggle_filename">ファイル名の表示を切り替え</string>
<string name="show_media">Show media</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Włącz widoczność nazwy pliku</string>
<string name="show_media">Wybierz co pokazywać</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Paisagem</string>
<!-- 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="toggle_filename">Mostrar/ocultar nome do arquivo</string>
<string name="show_media">Mostrar mídia</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">proporção na horizontal</string>
<!-- 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="toggle_filename">Mostrar/ocultar nome do ficheiro</string>
<string name="show_media">Mostrar multimédia</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Пейзажное соотношение сторон</string>
<!-- Settings -->
<string name="show_hidden_folders">Показать скрытые папки</string>
<string name="show_hidden_media">Показать скрытые папки</string>
<string name="autoplay_videos">Воспроизводить видео автоматически</string>
<string name="toggle_filename">Переключить отображение имени файла</string>
<string name="show_media">Отображать</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Orientácia naležato</string>
<!-- 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="toggle_filename">Prepnúť viditeľnosť názvov súborov</string>
<string name="show_media">Zobraziť médiá</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Visa/dölj filnamnen</string>
<string name="show_media">Visa media</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Dosya adı görünürlüğünü değiştir</string>
<string name="show_media">Medyayı göster</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Settings -->
<string name="show_hidden_folders">显示所有</string>
<string name="show_hidden_media">显示所有</string>
<string name="autoplay_videos">自动播放</string>
<string name="toggle_filename">显示文件名</string>
<string name="show_media">显示多媒体文件</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Settings -->
<string name="show_hidden_folders">秀出隱藏資料夾</string>
<string name="show_hidden_media">秀出隱藏資料夾</string>
<string name="autoplay_videos">自動播放影片</string>
<string name="toggle_filename">顯示檔案名稱</string>
<string name="show_media">秀出多媒體檔案</string>

View File

@ -77,7 +77,7 @@
<string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- 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="toggle_filename">Toggle filename visibility</string>
<string name="show_media">Show media</string>