Merge "DO NOT MERGE Do not reinflate the layout if it has not been already inflated." into rvc-qpr-dev

This commit is contained in:
Youngjun Kwak
2021-03-09 18:19:26 +00:00
committed by Android (Google) Code Review

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