From 4c279958276fd1d9f06d435e4a32a073c30cbf10 Mon Sep 17 00:00:00 2001 From: Jason Chang Date: Thu, 18 May 2023 07:37:53 +0000 Subject: [PATCH] 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 --- .../biometrics/AuthBiometricFingerprintIconController.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt index f04fdfff67f15..9807b9e6f1b34 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt @@ -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) {