Merge "Set burn-in offsets to 0 if darkAmount=0" into tm-dev am: a3193ed1db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17956044 Change-Id: Ifaacae521fbb0168ed7d802bed4c398c4a94d1c5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -127,17 +127,19 @@ public class UdfpsKeyguardView extends UdfpsAnimationView {
|
|||||||
mBurnInProgress = MathUtils.lerp(0f, getBurnInProgressOffset(), darkAmountForAnimation);
|
mBurnInProgress = MathUtils.lerp(0f, getBurnInProgressOffset(), darkAmountForAnimation);
|
||||||
|
|
||||||
if (mAnimatingBetweenAodAndLockscreen && !mPauseAuth) {
|
if (mAnimatingBetweenAodAndLockscreen && !mPauseAuth) {
|
||||||
|
mLockScreenFp.setTranslationX(mBurnInOffsetX);
|
||||||
|
mLockScreenFp.setTranslationY(mBurnInOffsetY);
|
||||||
mBgProtection.setAlpha(1f - mInterpolatedDarkAmount);
|
mBgProtection.setAlpha(1f - mInterpolatedDarkAmount);
|
||||||
mLockScreenFp.setAlpha(1f - mInterpolatedDarkAmount);
|
mLockScreenFp.setAlpha(1f - mInterpolatedDarkAmount);
|
||||||
} else if (mInterpolatedDarkAmount == 0f) {
|
} else if (mInterpolatedDarkAmount == 0f) {
|
||||||
|
mLockScreenFp.setTranslationX(0);
|
||||||
|
mLockScreenFp.setTranslationY(0);
|
||||||
mBgProtection.setAlpha(mAlpha / 255f);
|
mBgProtection.setAlpha(mAlpha / 255f);
|
||||||
mLockScreenFp.setAlpha(mAlpha / 255f);
|
mLockScreenFp.setAlpha(mAlpha / 255f);
|
||||||
} else {
|
} else {
|
||||||
mBgProtection.setAlpha(0f);
|
mBgProtection.setAlpha(0f);
|
||||||
mLockScreenFp.setAlpha(0f);
|
mLockScreenFp.setAlpha(0f);
|
||||||
}
|
}
|
||||||
mLockScreenFp.setTranslationX(mBurnInOffsetX);
|
|
||||||
mLockScreenFp.setTranslationY(mBurnInOffsetY);
|
|
||||||
mLockScreenFp.setProgress(1f - mInterpolatedDarkAmount);
|
mLockScreenFp.setProgress(1f - mInterpolatedDarkAmount);
|
||||||
|
|
||||||
mAodFp.setTranslationX(mBurnInOffsetX);
|
mAodFp.setTranslationX(mBurnInOffsetX);
|
||||||
|
|||||||
Reference in New Issue
Block a user