diff options
| author | 2021-03-26 22:04:49 +0000 | |
|---|---|---|
| committer | 2021-03-26 22:04:49 +0000 | |
| commit | 9e4fb6c4d30daa2c8b445b116d04425e212b338d (patch) | |
| tree | 8f1471d75158d16acad8a199d112a32756463661 | |
| parent | f97032531596b270328ae52160639ad5c9a35f4e (diff) | |
| parent | 87e65f64427a4ee63cedf81f2002b0551374124d (diff) | |
Snap for 7238877 from 87e65f64427a4ee63cedf81f2002b0551374124d to rvc-qpr3-release
Change-Id: I4e6763f2c15973354dbc3bcce96949f78c391899
| -rw-r--r-- | packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java b/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java index d7d7f53eb46d..3d79b06ca325 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java @@ -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 |