diff options
| author | 2022-04-27 12:33:52 +0000 | |
|---|---|---|
| committer | 2022-04-27 12:33:52 +0000 | |
| commit | a3193ed1db1b077635d95d0983bec7685ab8176e (patch) | |
| tree | 423ff29d3223f981f52ee70a6b8bc4d8f17a44da | |
| parent | 747806ddf87a0be6961643d12b0f0148a0ea71a0 (diff) | |
| parent | acd8594fde0ec770fe574237fee490e804f22ceb (diff) | |
Merge "Set burn-in offsets to 0 if darkAmount=0" into tm-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java index 842791f8ed93..937b81337cbb 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java @@ -127,17 +127,19 @@ public class UdfpsKeyguardView extends UdfpsAnimationView { mBurnInProgress = MathUtils.lerp(0f, getBurnInProgressOffset(), darkAmountForAnimation); if (mAnimatingBetweenAodAndLockscreen && !mPauseAuth) { + mLockScreenFp.setTranslationX(mBurnInOffsetX); + mLockScreenFp.setTranslationY(mBurnInOffsetY); mBgProtection.setAlpha(1f - mInterpolatedDarkAmount); mLockScreenFp.setAlpha(1f - mInterpolatedDarkAmount); } else if (mInterpolatedDarkAmount == 0f) { + mLockScreenFp.setTranslationX(0); + mLockScreenFp.setTranslationY(0); mBgProtection.setAlpha(mAlpha / 255f); mLockScreenFp.setAlpha(mAlpha / 255f); } else { mBgProtection.setAlpha(0f); mLockScreenFp.setAlpha(0f); } - mLockScreenFp.setTranslationX(mBurnInOffsetX); - mLockScreenFp.setTranslationY(mBurnInOffsetY); mLockScreenFp.setProgress(1f - mInterpolatedDarkAmount); mAodFp.setTranslationX(mBurnInOffsetX); |