diff options
| author | 2020-07-07 03:32:08 +0000 | |
|---|---|---|
| committer | 2020-07-07 03:32:08 +0000 | |
| commit | 736647f28c57f6c8f7a7166734e033da23fc3071 (patch) | |
| tree | d01544b1a68f1b914027483abde1a10d3d2e65bc | |
| parent | 70511db961dac6768965f80b88cbce139e5c1342 (diff) | |
| parent | f15dd752350db8fca730e810cfad7669d6131f81 (diff) | |
Merge "Adding null check for split bounds before notifying" into rvc-dev
| -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()); |