mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 22:29:19 +00:00
Update: Make List Animation Optional (Closes #53)
This commit is contained in:
@ -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>(
|
||||
|
Reference in New Issue
Block a user