Merge "DO NOT MERGE Inflate NotificationPanel on instantiation" into rvc-qpr-dev

This commit is contained in:
Alex Stetson
2021-03-25 23:44:16 +00:00
committed by Android (Google) Code Review

View File

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