Merge "HUN should not show up when the Notification shade is open" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-01 02:05:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1259,6 +1259,10 @@ public class CarStatusBar extends StatusBar implements
@Override @Override
protected void setHeadsUpVisible() { protected void setHeadsUpVisible() {
// if the Notifications panel is showing don't show the Heads up
if (mPanelExpanded) {
return;
}
super.setHeadsUpVisible(); super.setHeadsUpVisible();
if (mHeadsUpPanel.getVisibility() == View.VISIBLE) { if (mHeadsUpPanel.getVisibility() == View.VISIBLE) {
mStatusBarWindowController.setHeadsUpShowing(true); mStatusBarWindowController.setHeadsUpShowing(true);