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.InstallAfterSync,
|
||||||
Key.IncompatibleVersions,
|
Key.IncompatibleVersions,
|
||||||
Key.ListAnimation,
|
Key.ListAnimation,
|
||||||
|
Key.UpdatedApps,
|
||||||
|
Key.NewApps,
|
||||||
Key.ProxyHost,
|
Key.ProxyHost,
|
||||||
Key.ProxyPort,
|
Key.ProxyPort,
|
||||||
Key.ProxyType,
|
Key.ProxyType,
|
||||||
@ -142,6 +144,9 @@ object Preferences {
|
|||||||
object ListAnimation :
|
object ListAnimation :
|
||||||
Key<Boolean>("list_animation", Value.BooleanValue(false))
|
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 ProxyHost : Key<String>("proxy_host", Value.StringValue("localhost"))
|
||||||
object ProxyPort : Key<Int>("proxy_port", Value.IntValue(9050))
|
object ProxyPort : Key<Int>("proxy_port", Value.IntValue(9050))
|
||||||
object ProxyType : Key<Preferences.ProxyType>(
|
object ProxyType : Key<Preferences.ProxyType>(
|
||||||
|
@ -41,6 +41,8 @@ class PrefsUserFragment : PrefsNavFragmentX() {
|
|||||||
Preferences.Key.ListAnimation, getString(R.string.list_animation),
|
Preferences.Key.ListAnimation, getString(R.string.list_animation),
|
||||||
getString(R.string.list_animation_description)
|
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="new_applications">New applications</string>
|
||||||
<string name="install_after_sync">Install updates automatically</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="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>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user