Update: Make List Animation Optional (Closes #53)

This commit is contained in:
LooKeR
2021-10-20 20:13:55 +05:30
parent 84bf96e42e
commit c458e39be7
8 changed files with 41 additions and 7 deletions

View File

@ -16,8 +16,17 @@ object Preferences {
private val subject = PublishSubject.create<Key<*>>()
private val keys = sequenceOf(
Key.AutoSync, Key.IncompatibleVersions, Key.ProxyHost, Key.ProxyPort, Key.ProxyType,
Key.RootPermission, Key.SortOrder, Key.Theme, Key.UpdateNotify, Key.UpdateUnstable
Key.AutoSync,
Key.IncompatibleVersions,
Key.ListAnimation,
Key.ProxyHost,
Key.ProxyPort,
Key.ProxyType,
Key.RootPermission,
Key.SortOrder,
Key.Theme,
Key.UpdateNotify,
Key.UpdateUnstable
).map { Pair(it.name, it) }.toMap()
fun init(context: Context) {
@ -117,6 +126,9 @@ object Preferences {
object IncompatibleVersions :
Key<Boolean>("incompatible_versions", Value.BooleanValue(false))
object ListAnimation :
Key<Boolean>("list_animation", Value.BooleanValue(true))
object ProxyHost : Key<String>("proxy_host", Value.StringValue("localhost"))
object ProxyPort : Key<Int>("proxy_port", Value.IntValue(9050))
object ProxyType : Key<Preferences.ProxyType>(