Merge "Ensure view is attached to window before removing it" into sc-dev am: 943a2392a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13818005 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If1e15bd575b99005c0e7c30bc0ea05db61b19c1c
This commit is contained in:
@@ -170,7 +170,9 @@ public class AssistManager {
|
||||
boolean visible = false;
|
||||
if (mView != null) {
|
||||
visible = mView.isShowing();
|
||||
mWindowManager.removeView(mView);
|
||||
if (mView.isAttachedToWindow()) {
|
||||
mWindowManager.removeView(mView);
|
||||
}
|
||||
}
|
||||
|
||||
mView = (AssistOrbContainer) LayoutInflater.from(mContext).inflate(
|
||||
|
||||
Reference in New Issue
Block a user