mirror of
https://github.com/Evolution-X/packages_apps_SystemUIFlagFlipper
synced 2026-01-27 07:23:40 +00:00
SystemUIFlagFlipper: Use names instead of ids
Adapt to QPR3 change
Ref:
cd1af6a4d1
This commit is contained in:
committed by
Anay Wadhera
parent
e27ec25e44
commit
eb6903e454
@@ -48,10 +48,10 @@ class BootReceiver: BroadcastReceiver() {
|
||||
for (property: String in rawProperties) {
|
||||
// Format: namespace/key=value
|
||||
val kv = property.split("=")
|
||||
val id = kv[0].toInt()
|
||||
val name = kv[0]
|
||||
val enabled = kv[1].toBoolean()
|
||||
Log.i(TAG, "Setting flag ${id} to ${enabled}")
|
||||
flagManager.setFlagValue(id, enabled)
|
||||
Log.i(TAG, "Setting flag ${name} to ${enabled}")
|
||||
flagManager.setFlagValue(name, enabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user