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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user