Fix issue where Keyguard would not be dismissed

Keyguard would not be dismissed if showing locked with a bouncer
while a HUN is visible.

Test: manual
Change-Id: Ib13847ad0e2bcce08907eaad74860b987cd9f899
Fixes: 119929970
This commit is contained in:
Lucas Dupin
2018-12-05 19:07:31 -08:00
parent a4418c7efb
commit 8924a8d9bf

View File

@@ -2527,7 +2527,7 @@ public class StatusBar extends SystemUI implements DemoMode,
}
}
if (dismissShade) {
if (mExpandedVisible) {
if (mExpandedVisible && !mBouncerShowing) {
animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_RECENTS_PANEL, true /* force */,
true /* delayed*/);
} else {
@@ -3208,6 +3208,7 @@ public class StatusBar extends SystemUI implements DemoMode,
mNotificationPanel.onAffordanceLaunchEnded();
mNotificationPanel.animate().cancel();
mNotificationPanel.setAlpha(1f);
updateScrimController();
Trace.endSection();
return staying;
}