mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
minor code style updates
This commit is contained in:
parent
ee18bdfb89
commit
64c98d2b1f
1 changed files with 4 additions and 4 deletions
|
@ -385,11 +385,11 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
}
|
||||
}
|
||||
|
||||
fun getLastVideoPosition(path: String): Int {
|
||||
return prefs.getInt("$LAST_VIDEO_POSITION_PREFIX${path.toLowerCase()}", 0)
|
||||
}
|
||||
fun getLastVideoPosition(path: String) = prefs.getInt("$LAST_VIDEO_POSITION_PREFIX${path.toLowerCase()}", 0)
|
||||
|
||||
fun getAllLastVideoPositions() = prefs.all.filterKeys { it.startsWith(LAST_VIDEO_POSITION_PREFIX) }
|
||||
fun getAllLastVideoPositions() = prefs.all.filterKeys {
|
||||
it.startsWith(LAST_VIDEO_POSITION_PREFIX)
|
||||
}
|
||||
|
||||
var rememberLastVideoPosition: Boolean
|
||||
get() = prefs.getBoolean(REMEMBER_LAST_VIDEO_POSITION, false)
|
||||
|
|
Loading…
Reference in a new issue