diff options
| author | 2021-03-09 18:19:26 +0000 | |
|---|---|---|
| committer | 2021-03-09 18:19:26 +0000 | |
| commit | ed260d837f106017a03469f41dc89508fa78f16a (patch) | |
| tree | 522638fe5a9df2f6dbf2514d082d4ea963c92d7f | |
| parent | 84da0714a28a36effd724bd1ccfce91c9393f2c6 (diff) | |
| parent | b700beab665f5d2cc8e6414bb2e9d5083730be93 (diff) | |
Merge "DO NOT MERGE Do not reinflate the layout if it has not been already inflated." into rvc-qpr-dev
| -rw-r--r-- | packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java | 3 |
1 files changed, 3 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 6597144a088a..d7d7f53eb46d 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/notification/NotificationPanelViewController.java @@ -245,6 +245,9 @@ public class NotificationPanelViewController extends OverlayPanelViewController /** Reinflates the view. */ public void reinflate() { + // Do not reinflate the view if it has not been inflated at all. + if (!isInflated()) return; + ViewGroup container = (ViewGroup) getLayout(); container.removeView(mNotificationView); |