Merge "Re-prioritize keyguard visibility animation logic" into sc-v2-dev am: 3abdb0179e am: 55bd4fe70a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16231293 Change-Id: Ia18a8fea79f50eb91644e3d49d28461415e0bdb5
This commit is contained in:
@@ -136,6 +136,13 @@ public class KeyguardVisibilityHelper {
|
||||
.setStartDelay(delay);
|
||||
}
|
||||
animator.start();
|
||||
} else if (mUnlockedScreenOffAnimationController.shouldAnimateInKeyguard()) {
|
||||
mKeyguardViewVisibilityAnimating = true;
|
||||
|
||||
// Ask the screen off animation controller to animate the keyguard visibility for us
|
||||
// since it may need to be cancelled due to keyguard lifecycle events.
|
||||
mUnlockedScreenOffAnimationController.animateInKeyguard(
|
||||
mView, mAnimateKeyguardStatusViewVisibleEndRunnable);
|
||||
} else if (mLastOccludedState && !isOccluded) {
|
||||
// An activity was displayed over the lock screen, and has now gone away
|
||||
mView.setVisibility(View.VISIBLE);
|
||||
@@ -147,13 +154,6 @@ public class KeyguardVisibilityHelper {
|
||||
.alpha(1f)
|
||||
.withEndAction(mAnimateKeyguardStatusViewVisibleEndRunnable)
|
||||
.start();
|
||||
} else if (mUnlockedScreenOffAnimationController.shouldAnimateInKeyguard()) {
|
||||
mKeyguardViewVisibilityAnimating = true;
|
||||
|
||||
// Ask the screen off animation controller to animate the keyguard visibility for us
|
||||
// since it may need to be cancelled due to keyguard lifecycle events.
|
||||
mUnlockedScreenOffAnimationController.animateInKeyguard(
|
||||
mView, mAnimateKeyguardStatusViewVisibleEndRunnable);
|
||||
} else {
|
||||
mView.setVisibility(View.VISIBLE);
|
||||
mView.setAlpha(1f);
|
||||
|
||||
Reference in New Issue
Block a user