mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 22:29:19 +00:00
Add Preferences for root installation
Added Some more strings
This commit is contained in:
@ -17,7 +17,7 @@ object Preferences {
|
||||
|
||||
private val keys = sequenceOf(
|
||||
Key.AutoSync, Key.IncompatibleVersions, Key.ProxyHost, Key.ProxyPort, Key.ProxyType,
|
||||
Key.SortOrder, Key.Theme, Key.UpdateNotify, Key.UpdateUnstable
|
||||
Key.RootPermission, Key.SortOrder, Key.Theme, Key.UpdateNotify, Key.UpdateUnstable
|
||||
).map { Pair(it.name, it) }.toMap()
|
||||
|
||||
fun init(context: Context) {
|
||||
@ -124,6 +124,8 @@ object Preferences {
|
||||
Value.EnumerationValue(Preferences.ProxyType.Direct)
|
||||
)
|
||||
|
||||
object RootPermission : Key<Boolean>("root_permission", Value.BooleanValue(false))
|
||||
|
||||
object SortOrder : Key<Preferences.SortOrder>(
|
||||
"sort_order",
|
||||
Value.EnumerationValue(Preferences.SortOrder.Update)
|
||||
|
Reference in New Issue
Block a user