Merge "Abort dispatching animation callbacks if the root view is gone"
This commit is contained in:
@@ -882,6 +882,9 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
|
||||
} else {
|
||||
hideDirectly(types);
|
||||
}
|
||||
if (mViewRoot.mView == null) {
|
||||
return;
|
||||
}
|
||||
mViewRoot.mView.dispatchWindowInsetsAnimationPrepare(animation);
|
||||
mViewRoot.mView.getViewTreeObserver().addOnPreDrawListener(new OnPreDrawListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user