diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index 4d3bd9491..455508bbe 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -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 { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt index 6707292a4..ca095a53a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt @@ -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) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt index 85e5dec97..e97b043e8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt @@ -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" diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index ef9b92b7a..8435932d4 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -49,26 +49,6 @@ - - - - - - Wallpaper set successfully - Ordenar del mismo modo los archivos y las carpetas Mostrar carpetas ocultas Reproducir vídeos automáticamente Toggle filename visibility diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 1cb1766e6..f23d83a55 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -85,7 +85,6 @@ Hintergrundbild erfolgreich festgelegt - Selbe Sortierung für Dateien und Ordner Zeige versteckte Ordner Spiele Videos automatisch ab Toggle filename visibility diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index f62792558..333a95516 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -85,7 +85,6 @@ Wallpaper set successfully - Ordenar del mismo modo los archivos y las carpetas Mostrar carpetas ocultas Reproducir vídeos automáticamente Toggle filename visibility diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 55e39ff0a..e6eb31b98 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -85,7 +85,6 @@ Fond d\'écran défini avec succès. - Tri identique pour fichiers et dossiers Afficher les dossiers cachés Lecture automatique des vidéos Permutter la visibilité des noms de fichier diff --git a/app/src/main/res/values-gl-rES/strings.xml b/app/src/main/res/values-gl-rES/strings.xml index f62792558..333a95516 100644 --- a/app/src/main/res/values-gl-rES/strings.xml +++ b/app/src/main/res/values-gl-rES/strings.xml @@ -85,7 +85,6 @@ Wallpaper set successfully - Ordenar del mismo modo los archivos y las carpetas Mostrar carpetas ocultas Reproducir vídeos automáticamente Toggle filename visibility diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index d57c4f5ca..7f3108dae 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -85,7 +85,6 @@ Wallpaper set successfully - Same sorting for files and folders Show hidden folders Play videos automatically Toggle filename visibility diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 159c442e0..928edbfd3 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -85,7 +85,6 @@ Sfondo impostato correttamente - Stesso ordinamento per file e cartelle Mostra cartelle nascoste Riproduci video automaticamente Visibilità nome del file diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 2155b431f..9e8d9fb5d 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -85,7 +85,6 @@ 壁紙を正常に設定しました - ファイルとフォルダーを同じに並べ替え 非表示フォルダーを表示 自動的にビデオを再生 ファイル名の表示を切り替え diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 9757c689e..877f7533a 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -85,7 +85,6 @@ Fundo definido com sucesso - Mesma ordenação para ficheiros e pastas Mostrar pastas ocultas Reproduzir vídeos automaticamente Mostrar/ocultar nome do ficheiro diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 6c540e74f..03db8043e 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -85,7 +85,6 @@ Обои успешно установлены - Одинаковая сортировка для файлов и папок Показать скрытые папки Воспроизводить видео автоматически Переключить отображение имени файла diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index 47b582d48..957a8afb3 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -85,7 +85,6 @@ Tapeta bola úspešne zmenená - Použiť rovnaké zoradenie pre súbory a priečinky Zobraziť skryté priečinky Spúšťať videá automaticky Prepnúť viditeľnosť názvov súborov diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 535de608f..fe1c9edec 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -85,7 +85,6 @@ Bakgrundsbilden är ändrad - Samma sortering för filer som för mappar Visa dolda mappar Spela upp videos automatiskt Visa/dölj filnamnen diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index c6dc82fa2..dd1b7dc76 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -85,7 +85,6 @@ Duvar kağıdı başarıyla ayarlandı - Dosya ve klasörler için aynı sıralama Gizli klasörleri göster Videoları otomatik olarak oynat Dosya adı görünürlüğünü değiştir diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 334e4e1f7..38403abfd 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -85,7 +85,6 @@ 壁纸应用成功 - 全局排序 显示所有 自动播放 显示文件名 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index efc520f17..95a9fcc8d 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -85,7 +85,6 @@ 成功應用軟體桌布 - 全部排序 秀出隱藏資料夾 自動播放影片 顯示檔案名稱 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d57c4f5ca..7f3108dae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -85,7 +85,6 @@ Wallpaper set successfully - Same sorting for files and folders Show hidden folders Play videos automatically Toggle filename visibility