DO NOT MERGE Inflate NotificationPanel on instantiation am: 04cdf3a7d4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13902205

Change-Id: I43d82e9241cb0aa3140f74e28edace2217f410fc
This commit is contained in:
Alex Stetson
2021-03-26 00:19:28 +00:00
committed by Automerger Merge Worker

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