adding some constants related to slideshow animations
This commit is contained in:
parent
ff01f4fef4
commit
cd261dc8e1
2 changed files with 10 additions and 0 deletions
|
@ -307,6 +307,10 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
get() = prefs.getBoolean(SLIDESHOW_MOVE_BACKWARDS, false)
|
||||
set(slideshowMoveBackwards) = prefs.edit().putBoolean(SLIDESHOW_MOVE_BACKWARDS, slideshowMoveBackwards).apply()
|
||||
|
||||
var slideshowAnimation: Int
|
||||
get() = prefs.getInt(SLIDESHOW_ANIMATION, SLIDESHOW_ANIMATION_SLIDE)
|
||||
set(slideshowAnimation) = prefs.edit().putInt(SLIDESHOW_ANIMATION, slideshowAnimation).apply()
|
||||
|
||||
var loopSlideshow: Boolean
|
||||
get() = prefs.getBoolean(SLIDESHOW_LOOP, false)
|
||||
set(loopSlideshow) = prefs.edit().putBoolean(SLIDESHOW_LOOP, loopSlideshow).apply()
|
||||
|
|
|
@ -85,11 +85,17 @@ const val SLIDESHOW_INCLUDE_VIDEOS = "slideshow_include_videos"
|
|||
const val SLIDESHOW_INCLUDE_GIFS = "slideshow_include_gifs"
|
||||
const val SLIDESHOW_RANDOM_ORDER = "slideshow_random_order"
|
||||
const val SLIDESHOW_MOVE_BACKWARDS = "slideshow_move_backwards"
|
||||
const val SLIDESHOW_ANIMATION = "slideshow_animation"
|
||||
const val SLIDESHOW_LOOP = "loop_slideshow"
|
||||
const val SLIDESHOW_DEFAULT_INTERVAL = 5
|
||||
const val SLIDESHOW_SCROLL_DURATION = 500L
|
||||
const val SLIDESHOW_START_ON_ENTER = "slideshow_start_on_enter"
|
||||
|
||||
// slideshow animations
|
||||
const val SLIDESHOW_ANIMATION_NONE = 0
|
||||
const val SLIDESHOW_ANIMATION_SLIDE = 1
|
||||
const val SLIDESHOW_ANIMATION_FADE = 2
|
||||
|
||||
const val NOMEDIA = ".nomedia"
|
||||
const val FAVORITES = "favorites"
|
||||
const val RECYCLE_BIN = "recycle_bin"
|
||||
|
|
Loading…
Reference in a new issue