Merge "AOD: Fix navbar flicker when launching assistant" into oc-dr1-dev

This commit is contained in:
Adrian Roos
2017-08-04 22:41:23 +00:00
committed by Android (Google) Code Review

View File

@@ -201,7 +201,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
*/
public void reset(boolean hideBouncerWhenShowing) {
if (mShowing) {
if (mOccluded) {
if (mOccluded && !mDozing) {
mStatusBar.hideKeyguard();
mStatusBar.stopWaitingForKeyguardExit();
mBouncer.hide(false /* destroyView */);
@@ -294,9 +294,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
}
mStatusBarWindowManager.setKeyguardOccluded(occluded);
// If Keyguard is reshown, don't hide the bouncer as it might just have been requested by
// a FLAG_DISMISS_KEYGUARD_ACTIVITY.
reset(false /* hideBouncerWhenShowing*/);
// setDozing(false) will call reset once we stop dozing.
if (!mDozing) {
// If Keyguard is reshown, don't hide the bouncer as it might just have been requested
// by a FLAG_DISMISS_KEYGUARD_ACTIVITY.
reset(false /* hideBouncerWhenShowing*/);
}
if (animate && !occluded && mShowing) {
mStatusBar.animateKeyguardUnoccluding();
}