DO NOT MERGE Do not reinflate the layout if it has not been already inflated. am: b700beab66

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6cc751dbf46a6e45c04b605cf5f07194a2f20b4f
This commit is contained in:
kwaky
2021-03-09 18:56:30 +00:00
committed by Automerger Merge Worker

View File

@@ -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);