Add Preferences for root installation

Added Some more strings
This commit is contained in:
LooKeR
2021-10-12 19:18:52 +05:30
parent cf567b6e1e
commit 62441addc0
5 changed files with 43 additions and 28 deletions

View File

@ -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)