Merge "Adding null check for split bounds before notifying" into rvc-dev am: 736647f28c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12090432

Change-Id: I56f840abe9fe8aa6f00546e09a80391dcc7213d6
This commit is contained in:
Winson Chung
2020-07-07 03:46:01 +00:00
committed by Automerger Merge Worker

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());