Fix bug where QS tiles appeared behind keyguard
Animations must be run when closing QS during reset. Otherwise, keyguard
can enter a bad state where QS remains visible even though it should be
hidden.
Test: Open QS, tap user icon, double-tap blank area, ensure you are
taken back to the lock screen and that the UI looks normal
Fixes: 193041630
Change-Id: Id3bf85b33c50e833ca6639b04b76ac5b512cdd7c
This commit is contained in:
@@ -685,9 +685,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
||||
new FalsingManager.FalsingBeliefListener() {
|
||||
@Override
|
||||
public void onFalse() {
|
||||
// Hides quick settings.
|
||||
mNotificationPanelViewController.resetViews(true);
|
||||
// Hides bouncer and quick-quick settings.
|
||||
// Hides quick settings, bouncer, and quick-quick settings.
|
||||
mStatusBarKeyguardViewManager.reset(true);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -521,7 +521,9 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
||||
@Override
|
||||
public void reset(boolean hideBouncerWhenShowing) {
|
||||
if (mShowing) {
|
||||
mNotificationPanelViewController.closeQs();
|
||||
// Hide quick settings.
|
||||
mNotificationPanelViewController.resetViews(/* animate= */ true);
|
||||
// Hide bouncer and quick-quick settings.
|
||||
if (mOccluded && !mDozing) {
|
||||
mStatusBar.hideKeyguard();
|
||||
if (hideBouncerWhenShowing || mBouncer.needsFullscreenBouncer()) {
|
||||
|
||||
Reference in New Issue
Block a user