Adding null check for split bounds before notifying

Bug: 160626905
Test: Manual, just a null check
Change-Id: I94e3fd1f63edae131fa1cfe56eedad8a8d19b186
This commit is contained in:
Winson Chung
2020-07-06 16:09:43 -07:00
parent 54e3542b96
commit f15dd75235

View File

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