diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SlideshowDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SlideshowDialog.kt
index 8bc0ca1ff..a3b9aae99 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SlideshowDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SlideshowDialog.kt
@@ -36,6 +36,10 @@ class SlideshowDialog(val activity: SimpleActivity, val callback: () -> Unit) {
use_fade_holder.setOnClickListener {
use_fade.toggle()
}
+
+ move_backwards_holder.setOnClickListener {
+ move_backwards.toggle()
+ }
}
setupValues()
@@ -55,6 +59,7 @@ class SlideshowDialog(val activity: SimpleActivity, val callback: () -> Unit) {
include_videos.isChecked = config.slideshowIncludeVideos
random_order.isChecked = config.slideshowRandomOrder
use_fade.isChecked = config.slideshowUseFade
+ move_backwards.isChecked = config.slideshowMoveBackwards
}
}
@@ -68,6 +73,7 @@ class SlideshowDialog(val activity: SimpleActivity, val callback: () -> Unit) {
slideshowIncludeVideos = view.include_videos.isChecked
slideshowRandomOrder = view.random_order.isChecked
slideshowUseFade = view.use_fade.isChecked
+ slideshowMoveBackwards = view.move_backwards.isChecked
}
dialog.dismiss()
callback()
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 a80d599d8..6dd00d0e4 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt
@@ -248,4 +248,8 @@ class Config(context: Context) : BaseConfig(context) {
var slideshowUseFade: Boolean
get() = prefs.getBoolean(SLIDESHOW_USE_FADE, false)
set(slideshowUseFade) = prefs.edit().putBoolean(SLIDESHOW_USE_FADE, slideshowUseFade).apply()
+
+ var slideshowMoveBackwards: Boolean
+ get() = prefs.getBoolean(SLIDESHOW_MOVE_BACKWARDS, false)
+ set(slideshowMoveBackwards) = prefs.edit().putBoolean(SLIDESHOW_MOVE_BACKWARDS, slideshowMoveBackwards).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 f3350813f..5cf46791d 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt
@@ -39,6 +39,7 @@ val SLIDESHOW_INTERVAL = "slideshow_interval"
val SLIDESHOW_INCLUDE_VIDEOS = "slideshow_include_videos"
val SLIDESHOW_RANDOM_ORDER = "slideshow_random_order"
val SLIDESHOW_USE_FADE = "slideshow_use_fade"
+val SLIDESHOW_MOVE_BACKWARDS = "slideshow_move_backwards"
val SLIDESHOW_DEFAULT_INTERVAL = 5
val NOMEDIA = ".nomedia"
diff --git a/app/src/main/res/layout/dialog_slideshow.xml b/app/src/main/res/layout/dialog_slideshow.xml
index 50817ee1e..398f667ac 100644
--- a/app/src/main/res/layout/dialog_slideshow.xml
+++ b/app/src/main/res/layout/dialog_slideshow.xml
@@ -99,5 +99,26 @@
android:text="@string/use_fade"/>
+
+
+
+
+
+
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 40d71a3fc..4d39e6c5f 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Zobrazit skryté média
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 39aed4245..9e0ac1425 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Versteckte Ordner zeigen
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index fb1fbb8ce..cf6a7a911 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Mostrar carpetas ocultas
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 84d095ab4..fb407d8ef 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Afficher les dossiers cachés
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index ce5ecab3b..1e265dc4f 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Show hidden media
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 57da6ce18..f3a0bfe81 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Mostra cartelle nascoste
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index e2f372b89..f87a0df6a 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
非表示フォルダーを表示
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 49e9e8802..b78f4f67b 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Pokazuj ukryte foldery
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index 310109fa2..273f27178 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -86,6 +86,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Mostrar pastas ocultas
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
index b2401407b..e32e84203 100644
--- a/app/src/main/res/values-pt/strings.xml
+++ b/app/src/main/res/values-pt/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Mostrar pastas ocultas
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 363f435fb..90f874c2c 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Показать скрытые папки
diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml
index f5beb86b5..73de54dca 100644
--- a/app/src/main/res/values-sk/strings.xml
+++ b/app/src/main/res/values-sk/strings.xml
@@ -85,6 +85,7 @@
Zahrnúť videá
Náhodné poradie
Používať miznúce animácie
+ Ísť opačným smerom
Zobraziť skryté médiá
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index fa8881770..c282c6a00 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Visa dolda mappar
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index b79d919d5..ee696c2d9 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Gizli klasörleri göster
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index d04ea72bc..8bfcd3d45 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
显示所有
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 651704630..7145b811c 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
秀出隱藏資料夾
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a10a370cd..f0d57ca99 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -85,6 +85,7 @@
Include videos
Random order
Use fade animations
+ Move backwards
Show hidden media