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:
Peter Kalauskas
2021-07-12 14:07:49 -07:00
parent b96d192aee
commit 79a3f02f0f
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}
};

View File

@@ -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()) {