Merge "Adding null check for split bounds before notifying" into rvc-dev am: 736647f28c am: 732f43e51e am: f4a792497f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12090432 Change-Id: I2a5733b7e791ee821b237b856a6a3a4d3ff00941
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user