mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
remove the switch for same sorting of files and folders, never apply it
This commit is contained in:
parent
a8eeac2f8b
commit
8c236aaf5b
20 changed files with 2 additions and 52 deletions
|
@ -21,7 +21,6 @@ class SettingsActivity : SimpleActivity() {
|
|||
|
||||
setupCustomizeColors()
|
||||
setupManageExcludedFolders()
|
||||
setupSameSorting()
|
||||
setupShowHiddenFolders()
|
||||
setupAutoplayVideos()
|
||||
setupLoopVideos()
|
||||
|
@ -41,14 +40,6 @@ class SettingsActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
private fun setupSameSorting() {
|
||||
settings_same_sorting.isChecked = config.isSameSorting
|
||||
settings_same_sorting_holder.setOnClickListener {
|
||||
settings_same_sorting.toggle()
|
||||
config.isSameSorting = settings_same_sorting.isChecked
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupShowHiddenFolders() {
|
||||
settings_show_hidden_folders.isChecked = config.showHiddenFolders
|
||||
settings_show_hidden_folders_holder.setOnClickListener {
|
||||
|
|
|
@ -10,13 +10,9 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
fun newInstance(context: Context) = Config(context)
|
||||
}
|
||||
|
||||
var isSameSorting: Boolean
|
||||
get() = prefs.getBoolean(IS_SAME_SORTING, true)
|
||||
set(isSameSorting) = prefs.edit().putBoolean(IS_SAME_SORTING, isSameSorting).apply()
|
||||
|
||||
var fileSorting: Int
|
||||
get() = if (isSameSorting) directorySorting else prefs.getInt(SORT_ORDER, SORT_BY_DATE_MODIFIED or SORT_DESCENDING)
|
||||
set(order) = if (isSameSorting) directorySorting = order else prefs.edit().putInt(SORT_ORDER, order).apply()
|
||||
get() = prefs.getInt(SORT_ORDER, SORT_BY_DATE_MODIFIED or SORT_DESCENDING)
|
||||
set(order) = prefs.edit().putInt(SORT_ORDER, order).apply()
|
||||
|
||||
var directorySorting: Int
|
||||
get() = prefs.getInt(DIRECTORY_SORT_ORDER, SORT_BY_DATE_MODIFIED or SORT_DESCENDING)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package com.simplemobiletools.gallery.helpers
|
||||
|
||||
// shared preferences
|
||||
val IS_SAME_SORTING = "is_same_sorting"
|
||||
val SORT_ORDER = "sort_order"
|
||||
val DIRECTORY_SORT_ORDER = "directory_sort_order"
|
||||
val SHOW_HIDDEN_FOLDERS = "show_hidden_folders"
|
||||
|
|
|
@ -49,26 +49,6 @@
|
|||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/settings_same_sorting_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/medium_margin"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:padding="@dimen/activity_margin">
|
||||
|
||||
<com.simplemobiletools.commons.views.MySwitchCompat
|
||||
android:id="@+id/settings_same_sorting"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:paddingLeft="@dimen/medium_margin"
|
||||
android:paddingStart="@dimen/medium_margin"
|
||||
android:text="@string/same_sorting"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/settings_show_hidden_folders_holder"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Wallpaper set successfully</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Ordenar del mismo modo los archivos y las carpetas</string>
|
||||
<string name="show_hidden_folders">Mostrar carpetas ocultas</string>
|
||||
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Hintergrundbild erfolgreich festgelegt</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Selbe Sortierung für Dateien und Ordner</string>
|
||||
<string name="show_hidden_folders">Zeige versteckte Ordner</string>
|
||||
<string name="autoplay_videos">Spiele Videos automatisch ab</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Wallpaper set successfully</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Ordenar del mismo modo los archivos y las carpetas</string>
|
||||
<string name="show_hidden_folders">Mostrar carpetas ocultas</string>
|
||||
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Fond d\'écran défini avec succès.</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Tri identique pour fichiers et dossiers</string>
|
||||
<string name="show_hidden_folders">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>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Wallpaper set successfully</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Ordenar del mismo modo los archivos y las carpetas</string>
|
||||
<string name="show_hidden_folders">Mostrar carpetas ocultas</string>
|
||||
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Wallpaper set successfully</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Sfondo impostato correttamente</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Stesso ordinamento per file e cartelle</string>
|
||||
<string name="show_hidden_folders">Mostra cartelle nascoste</string>
|
||||
<string name="autoplay_videos">Riproduci video automaticamente</string>
|
||||
<string name="toggle_filename">Visibilità nome del file</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">壁紙を正常に設定しました</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">ファイルとフォルダーを同じに並べ替え</string>
|
||||
<string name="show_hidden_folders">非表示フォルダーを表示</string>
|
||||
<string name="autoplay_videos">自動的にビデオを再生</string>
|
||||
<string name="toggle_filename">ファイル名の表示を切り替え</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Fundo definido com sucesso</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Mesma ordenação para ficheiros e pastas</string>
|
||||
<string name="show_hidden_folders">Mostrar pastas ocultas</string>
|
||||
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
||||
<string name="toggle_filename">Mostrar/ocultar nome do ficheiro</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Обои успешно установлены</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Одинаковая сортировка для файлов и папок</string>
|
||||
<string name="show_hidden_folders">Показать скрытые папки</string>
|
||||
<string name="autoplay_videos">Воспроизводить видео автоматически</string>
|
||||
<string name="toggle_filename">Переключить отображение имени файла</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Tapeta bola úspešne zmenená</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Použiť rovnaké zoradenie pre súbory a priečinky</string>
|
||||
<string name="show_hidden_folders">Zobraziť skryté priečinky</string>
|
||||
<string name="autoplay_videos">Spúšťať videá automaticky</string>
|
||||
<string name="toggle_filename">Prepnúť viditeľnosť názvov súborov</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Bakgrundsbilden är ändrad</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Samma sortering för filer som för mappar</string>
|
||||
<string name="show_hidden_folders">Visa dolda mappar</string>
|
||||
<string name="autoplay_videos">Spela upp videos automatiskt</string>
|
||||
<string name="toggle_filename">Visa/dölj filnamnen</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Duvar kağıdı başarıyla ayarlandı</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Dosya ve klasörler için aynı sıralama</string>
|
||||
<string name="show_hidden_folders">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>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">壁纸应用成功</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">全局排序</string>
|
||||
<string name="show_hidden_folders">显示所有</string>
|
||||
<string name="autoplay_videos">自动播放</string>
|
||||
<string name="toggle_filename">显示文件名</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">成功應用軟體桌布</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">全部排序</string>
|
||||
<string name="show_hidden_folders">秀出隱藏資料夾</string>
|
||||
<string name="autoplay_videos">自動播放影片</string>
|
||||
<string name="toggle_filename">顯示檔案名稱</string>
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
<string name="wallpaper_set_successfully">Wallpaper set successfully</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
|
Loading…
Reference in a new issue