summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Youngjun Kwak <kwaky@google.com> 2021-03-09 18:19:26 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-03-09 18:19:26 +0000
commited260d837f106017a03469f41dc89508fa78f16a (patch)
tree522638fe5a9df2f6dbf2514d082d4ea963c92d7f
parent84da0714a28a36effd724bd1ccfce91c9393f2c6 (diff)
parentb700beab665f5d2cc8e6414bb2e9d5083730be93 (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.java3
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);