Fix the fingerprint UI color of the biometric prompt page is

abnormal under the white theme

The default animaiton lottie is for light theme in udfps, so add
if-condition when calling applyDynamicColors() method.

Bug: 269560110

Test: manually test with reproduciable steps:
Pre-Condition:
Enroll at least one finger.
DUT white theme.

STEPS TO REPRODUCE:
Settings -> Network & internet -> Hotspot & tethering ->
Wi-Fi hotspot -> Turn on Use Wi-Fi hotspot Press the QR-code icon.

Change-Id: Ic71a0eac7bc5dd44722f19e6c7e24b6a8b8684d2
This commit is contained in:
Jason Chang
2023-05-18 07:37:53 +00:00
parent 2907102b7b
commit 4c27995827

View File

@@ -122,7 +122,9 @@ open class AuthBiometricFingerprintIconController(
if (shouldAnimateIconViewForTransition(lastState, newState)) {
iconView.playAnimation()
}
LottieColorUtils.applyDynamicColors(context, iconView)
if (isSideFps) {
LottieColorUtils.applyDynamicColors(context, iconView)
}
}
override fun updateIcon(@BiometricState lastState: Int, @BiometricState newState: Int) {