DO NOT MERGE Inflate NotificationPanel on instantiation

If the NotificationPanel is not inflated, the proper listeners are not
setup and certain behavior will be broken until the panel is opened for
the first time.

Bug: 182531816
Test: manual
Change-Id: If55156b963c0a83ff644524dea0106708f1635cc
This commit is contained in:
Alex Stetson
2021-03-17 09:26:13 -07:00
parent ed260d837f
commit 04cdf3a7d4

View File

@@ -166,6 +166,10 @@ public class NotificationPanelViewController extends OverlayPanelViewController
mEnableHeadsUpNotificationWhenNotificationShadeOpen = mResources.getBoolean( mEnableHeadsUpNotificationWhenNotificationShadeOpen = mResources.getBoolean(
com.android.car.notification.R.bool com.android.car.notification.R.bool
.config_enableHeadsUpNotificationWhenNotificationShadeOpen); .config_enableHeadsUpNotificationWhenNotificationShadeOpen);
// Inflate view on instantiation to properly initialize listeners even if panel has
// not been opened.
getOverlayViewGlobalStateController().inflateView(this);
} }
// CommandQueue.Callbacks // CommandQueue.Callbacks