Merge "Adding null check for split bounds before notifying" into rvc-dev

This commit is contained in:
Winson Chung
2020-07-07 03:32:08 +00:00
committed by Android (Google) Code Review

View File

@@ -675,6 +675,9 @@ public class DividerView extends FrameLayout implements OnTouchListener,
} }
private void notifySplitScreenBoundsChanged() { private void notifySplitScreenBoundsChanged() {
if (mSplitLayout.mPrimary == null || mSplitLayout.mSecondary == null) {
return;
}
mOtherTaskRect.set(mSplitLayout.mSecondary); mOtherTaskRect.set(mSplitLayout.mSecondary);
mTmpRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), mHandle.getBottom()); mTmpRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), mHandle.getBottom());