Add: Prefernces for number of shown updated and new apps

This commit is contained in:
machiav3lli
2022-01-16 13:30:37 +01:00
parent f48958433d
commit 1050e7a85d
3 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,8 @@ object Preferences {
Key.InstallAfterSync,
Key.IncompatibleVersions,
Key.ListAnimation,
Key.UpdatedApps,
Key.NewApps,
Key.ProxyHost,
Key.ProxyPort,
Key.ProxyType,
@ -142,6 +144,9 @@ object Preferences {
object ListAnimation :
Key<Boolean>("list_animation", Value.BooleanValue(false))
object UpdatedApps : Key<Int>("updated_apps", Value.IntValue(100))
object NewApps : Key<Int>("new_apps", Value.IntValue(20))
object ProxyHost : Key<String>("proxy_host", Value.StringValue("localhost"))
object ProxyPort : Key<Int>("proxy_port", Value.IntValue(9050))
object ProxyType : Key<Preferences.ProxyType>(

View File

@ -41,6 +41,8 @@ class PrefsUserFragment : PrefsNavFragmentX() {
Preferences.Key.ListAnimation, getString(R.string.list_animation),
getString(R.string.list_animation_description)
)
addEditInt(Preferences.Key.UpdatedApps, getString(R.string.prefs_updated_apps), 1..200)
addEditInt(Preferences.Key.NewApps, getString(R.string.prefs_new_apps), 1..50)
}
}
}