mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 03:42:15 +00:00
Add: Prefernces for number of shown updated and new apps
This commit is contained in:
parent
f48958433d
commit
1050e7a85d
@ -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>(
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -183,4 +183,6 @@
|
||||
<string name="new_applications">New applications</string>
|
||||
<string name="install_after_sync">Install updates automatically</string>
|
||||
<string name="install_after_sync_summary">Automatically install app updates after syncing repositories</string>
|
||||
<string name="prefs_updated_apps">Number of updated apps to show</string>
|
||||
<string name="prefs_new_apps">Number of new apps to show</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user