diff options
author | Adrian Roos <roosa@google.com> | 2015-09-11 12:38:43 -0700 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-09-12 00:51:52 +0000 |
commit | 46df1caf3ba22e8afbc75cb008e0e6d89660beb0 (patch) | |
tree | 84dd79fd396329950fe4a820116b4f0d91a5e71e /packages/SystemUI | |
parent | 62b94c353a8748ef10691da4844bf894e1155870 (diff) | |
download | frameworks_base-46df1caf3ba22e8afbc75cb008e0e6d89660beb0.zip frameworks_base-46df1caf3ba22e8afbc75cb008e0e6d89660beb0.tar.gz frameworks_base-46df1caf3ba22e8afbc75cb008e0e6d89660beb0.tar.bz2 |
Fix light status bar transitions
Bug: 23971926
Change-Id: Ia3c6fb18d38fb7479028191ad3df8389adb830ec
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 548125d..59aa920 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -312,6 +312,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, boolean mLeaveOpenOnKeyguardHide; KeyguardIndicationController mKeyguardIndicationController; + // Keyguard is going away soon. + private boolean mKeyguardGoingAway; + // Keyguard is actually fading away now. private boolean mKeyguardFadingAway; private long mKeyguardFadingAwayDelay; private long mKeyguardFadingAwayDuration; @@ -3558,6 +3561,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, // Treat Keyguard exit animation as an app transition to achieve nice transition for status // bar. + mKeyguardGoingAway = true; mIconController.appTransitionPending(); } @@ -3589,6 +3593,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, */ public void finishKeyguardFadingAway() { mKeyguardFadingAway = false; + mKeyguardGoingAway = false; } public void stopWaitingForKeyguardExit() { @@ -4079,9 +4084,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, public void appTransitionStarting(long startTime, long duration) { // Use own timings when Keyguard is going away, see keyguardGoingAway and - // setKeyguardFadingAway. When duration is 0, skip this one because no animation is really - // playing. - if (!mKeyguardFadingAway && duration > 0) { + // setKeyguardFadingAway. + if (!mKeyguardGoingAway) { mIconController.appTransitionStarting(startTime, duration); } if (mIconPolicy != null) { |