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:
committed by
Android (Google) Code Review
commit
ed260d837f
@@ -245,6 +245,9 @@ public class NotificationPanelViewController extends OverlayPanelViewController
|
|||||||
|
|
||||||
/** Reinflates the view. */
|
/** Reinflates the view. */
|
||||||
public void reinflate() {
|
public void reinflate() {
|
||||||
|
// Do not reinflate the view if it has not been inflated at all.
|
||||||
|
if (!isInflated()) return;
|
||||||
|
|
||||||
ViewGroup container = (ViewGroup) getLayout();
|
ViewGroup container = (ViewGroup) getLayout();
|
||||||
container.removeView(mNotificationView);
|
container.removeView(mNotificationView);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user