Merge "Fixes AssistOrbController crash" into sc-qpr1-dev am: c5f6c53cd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15526390 Change-Id: I5e2e45355cfda341a5e842406b6ae6140d3c59aa
This commit is contained in:
@@ -57,7 +57,9 @@ public class AssistOrbController {
|
|||||||
public void run() {
|
public void run() {
|
||||||
mView.removeCallbacks(this);
|
mView.removeCallbacks(this);
|
||||||
mView.show(false /* show */, true /* animate */, () -> {
|
mView.show(false /* show */, true /* animate */, () -> {
|
||||||
|
if (mView.isAttachedToWindow()) {
|
||||||
mWindowManager.removeView(mView);
|
mWindowManager.removeView(mView);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user