From df808486df930fb51d39019681ab699c7f9ba750 Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 21 Apr 2022 14:11:21 +0000 Subject: [PATCH] Always update lockscreen UDFPS icon's progress The progress determines the fade amount (since it represents the transition to the AOD UDFPS icon), so we want to make sure it's appropriately set so isn't in a stale state. Test: manual Fixes: 229705284 Change-Id: I8ceb93a93c3614a3080787f43d6dcd7b86b1221a --- .../com/android/systemui/biometrics/UdfpsKeyguardView.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java index 67d0db22b3cff..842791f8ed935 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java @@ -128,10 +128,6 @@ public class UdfpsKeyguardView extends UdfpsAnimationView { if (mAnimatingBetweenAodAndLockscreen && !mPauseAuth) { mBgProtection.setAlpha(1f - mInterpolatedDarkAmount); - - mLockScreenFp.setTranslationX(mBurnInOffsetX); - mLockScreenFp.setTranslationY(mBurnInOffsetY); - mLockScreenFp.setProgress(1f - mInterpolatedDarkAmount); mLockScreenFp.setAlpha(1f - mInterpolatedDarkAmount); } else if (mInterpolatedDarkAmount == 0f) { mBgProtection.setAlpha(mAlpha / 255f); @@ -140,6 +136,9 @@ public class UdfpsKeyguardView extends UdfpsAnimationView { mBgProtection.setAlpha(0f); mLockScreenFp.setAlpha(0f); } + mLockScreenFp.setTranslationX(mBurnInOffsetX); + mLockScreenFp.setTranslationY(mBurnInOffsetY); + mLockScreenFp.setProgress(1f - mInterpolatedDarkAmount); mAodFp.setTranslationX(mBurnInOffsetX); mAodFp.setTranslationY(mBurnInOffsetY);