diff --git a/src/main/kotlin/com/looker/droidify/content/Preferences.kt b/src/main/kotlin/com/looker/droidify/content/Preferences.kt index c5ec5dd8..80156475 100644 --- a/src/main/kotlin/com/looker/droidify/content/Preferences.kt +++ b/src/main/kotlin/com/looker/droidify/content/Preferences.kt @@ -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("list_animation", Value.BooleanValue(false)) + object UpdatedApps : Key("updated_apps", Value.IntValue(100)) + object NewApps : Key("new_apps", Value.IntValue(20)) + object ProxyHost : Key("proxy_host", Value.StringValue("localhost")) object ProxyPort : Key("proxy_port", Value.IntValue(9050)) object ProxyType : Key( diff --git a/src/main/kotlin/com/looker/droidify/ui/fragments/PrefsUserFragment.kt b/src/main/kotlin/com/looker/droidify/ui/fragments/PrefsUserFragment.kt index 3954d9aa..fc89a188 100644 --- a/src/main/kotlin/com/looker/droidify/ui/fragments/PrefsUserFragment.kt +++ b/src/main/kotlin/com/looker/droidify/ui/fragments/PrefsUserFragment.kt @@ -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) } } } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index d8e031e6..77adda41 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -183,4 +183,6 @@ New applications Install updates automatically Automatically install app updates after syncing repositories + Number of updated apps to show + Number of new apps to show