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
This commit is contained in:
Beverly
2022-04-21 14:11:21 +00:00
parent d248c68122
commit df808486df

View File

@@ -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);