Update custom clock flag to a resource

This will allow the flag to be overridden on a per-device basis.

Bug: 281528246
Test: mp droid and verified that clocks are no longer present on device
which overrides this resource to false

Change-Id: I73022590bb61a28ee03166a9a29981efb090ded9
This commit is contained in:
Lucas Silva
2023-05-11 16:21:22 -04:00
parent b4eb0b77fd
commit a29dfab3e5
2 changed files with 8 additions and 1 deletions

View File

@@ -28,6 +28,8 @@
<!-- Will display the bouncer on one side of the display, and the current user icon and
user switcher on the other side -->
<bool name="config_enableBouncerUserSwitcher">false</bool>
<!-- Will enable custom clocks on the lockscreen -->
<bool name="config_enableLockScreenCustomClocks">true</bool>
<!-- Time to be considered a consecutive fingerprint failure in ms -->
<integer name="fp_consecutive_failure_time_ms">3500</integer>
</resources>

View File

@@ -115,7 +115,12 @@ object Flags {
resourceBooleanFlag(204, R.bool.config_enableBouncerUserSwitcher, "bouncer_user_switcher")
// TODO(b/254512676): Tracking Bug
@JvmField val LOCKSCREEN_CUSTOM_CLOCKS = releasedFlag(207, "lockscreen_custom_clocks")
@JvmField
val LOCKSCREEN_CUSTOM_CLOCKS = resourceBooleanFlag(
207,
R.bool.config_enableLockScreenCustomClocks,
"lockscreen_custom_clocks"
)
// TODO(b/275694445): Tracking Bug
@JvmField