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 bf2532563..0087b2988 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt @@ -124,6 +124,14 @@ class Config(context: Context) : BaseConfig(context) { get() = prefs.getBoolean(MAX_BRIGHTNESS, false) set(maxBrightness) = prefs.edit().putBoolean(MAX_BRIGHTNESS, maxBrightness).apply() + var cropThumbnails: Boolean + get() = prefs.getBoolean(CROP_THUMBNAILS, true) + set(cropThumbnails) = prefs.edit().putBoolean(CROP_THUMBNAILS, cropThumbnails).apply() + + var autoRotateScreen: Boolean + get() = prefs.getBoolean(AUTO_ROTATE_SCREEN, false) + set(autoRotateScreen) = prefs.edit().putBoolean(AUTO_ROTATE_SCREEN, autoRotateScreen).apply() + var loopVideos: Boolean get() = prefs.getBoolean(LOOP_VIDEOS, false) set(loop) = prefs.edit().putBoolean(LOOP_VIDEOS, loop).apply() 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 4142e1635..4f61a9f62 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt @@ -10,6 +10,8 @@ val AUTOPLAY_VIDEOS = "autoplay_videos" val LOOP_VIDEOS = "loop_videos" val ANIMATE_GIFS = "animate_gifs" val MAX_BRIGHTNESS = "max_brightness" +val CROP_THUMBNAILS = "crop_thumbnails" +val AUTO_ROTATE_SCREEN = "auto_rotate_screen" val DISPLAY_FILE_NAMES = "display_file_names" val PINNED_FOLDERS = "pinned_folders" val DIR_COLUMN_CNT = "dir_column_cnt" diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index f270ad39c..c0f840763 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -87,6 +87,8 @@ Přehrávat videa ve smyčce Animovat náhledy souborů GIF Nastavit jas obrazovky na maximum při zobrazení médií + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index e8b18f493..e51263c22 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -87,6 +87,8 @@ Video Endlos-Schleife Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index bfc07fb6c..d0f0c09b0 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -87,6 +87,8 @@ Reproducción continua de vídeos Animar las miniaturas de gifs Brillo máximo cuando se muestran los medios + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 8abacbf47..7c092c624 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -87,6 +87,8 @@ Tourner en boucle les vidéos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index fdaaa2543..851987a61 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -87,6 +87,8 @@ Loop videos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 580236b64..82ed862e7 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -87,6 +87,8 @@ Loop videos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 9eb2ee223..0e8617e0c 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -87,6 +87,8 @@ Loop videos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index f736f3616..1e13aaf14 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -87,6 +87,8 @@ Pętla wideo Animowanie gify z miniaturkami Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index f74a0921a..bbf373ccc 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -87,6 +87,8 @@ Vídeos em ciclo Animação de gifs nas miniaturas Brilho máximo permitido + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index e2aa8b45e..751b5542f 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -87,6 +87,8 @@ Повторять видео Анимировать эскизы gif-файлов Максимальная яркость при просмотре файлов + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index f55172eaf..c4252b4ed 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -86,7 +86,9 @@ Obrázky aj videá Automaticky reštartovať videá Animovať gif súbory pri náhľade - Maximum brightness when viewing media + Maximálny jas pri prezeraní médií + Orezať náhľady na štvorce + Automaticky otáčať obrazovku pri celoobrazovkovom zobrazení diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index b99c43414..15d5e57b9 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -87,6 +87,8 @@ Återspela videos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index e27d95bcd..07357ede6 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -87,6 +87,8 @@ Videolar döngüsü Küçük resimlerde gif\'leri canlandırın Ortam görüntülerken azami parlaklık + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 801b97de6..76a644633 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -87,6 +87,8 @@ 循环播放视频 Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 362549a60..8e4aec047 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -87,6 +87,8 @@ 迴圈播放影片 Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 173785377..08fbd1fdb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -87,6 +87,8 @@ Loop videos Animate gifs at thumbnails Maximum brightness when viewing media + Crop thumbnails into squares + Auto-rotate screen at fullscreen view