diff options
| author | 2020-07-07 04:14:30 +0000 | |
|---|---|---|
| committer | 2020-07-07 04:14:30 +0000 | |
| commit | 9debca875e875d90568f5801f6a84f12a5646b7f (patch) | |
| tree | 5badcbb7f52002df8606e53205132f6ae62637cf | |
| parent | bd5f917ce75af8ec0f551171a45cbfd5cd1aa630 (diff) | |
| parent | f4a792497f11d3d310bb7eaaddd9dddf55b0af4e (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java index 6f554e698c58..b6c6afd523b3 100644 --- a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java +++ b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java @@ -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()); |