Move active unlock chipbar flag to a ResourceFlag

So that different devices can override the resource

Test: manually check flagFlipper app on different devices
Bug: 260876265
Change-Id: I25ba5a5d64c80faf22d5a70d98e441ab8fae0a5c
This commit is contained in:
Beverly
2022-12-15 20:13:53 +00:00
committed by Beverly Tai
parent aff1ea79df
commit 2283fc2c85
2 changed files with 6 additions and 1 deletions

View File

@@ -30,6 +30,9 @@
<bool name="flag_charging_ripple">false</bool>
<!-- Whether to show chipbar UI whenever the device is unlocked by ActiveUnlock. -->
<bool name="flag_active_unlock_chipbar">true</bool>
<bool name="flag_smartspace">false</bool>
<!-- Whether the user switcher chip shows in the status bar. When true, the multi user

View File

@@ -165,7 +165,9 @@ object Flags {
/** Shows chipbar UI whenever the device is unlocked by ActiveUnlock (watch). */
// TODO(b/256513609): Tracking Bug
@JvmField val ACTIVE_UNLOCK_CHIPBAR = releasedFlag(217, "active_unlock_chipbar")
@JvmField
val ACTIVE_UNLOCK_CHIPBAR =
resourceBooleanFlag(217, R.bool.flag_active_unlock_chipbar, "active_unlock_chipbar")
/**
* Migrates control of the LightRevealScrim's reveal effect and amount from legacy code to the