Merge "Gesture Exclusion: Fix crash when exclusion updates after detaching window"

This commit is contained in:
TreeHugger Robot
2019-04-01 18:04:52 +00:00
committed by Android (Google) Code Review

View File

@@ -3980,7 +3980,7 @@ public final class ViewRootImpl implements ViewParent,
void systemGestureExclusionChanged() {
final List<Rect> rectsForWindowManager = mGestureExclusionTracker.computeChangedRects();
if (rectsForWindowManager != null) {
if (rectsForWindowManager != null && mView != null) {
try {
mWindowSession.reportSystemGestureExclusionChanged(mWindow, rectsForWindowManager);
} catch (RemoteException e) {