Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84c43bc4 authored by Evan Rosky's avatar Evan Rosky Committed by Automerger Merge Worker
Browse files

Merge "Update the divider touch-region properly" into rvc-dev am: f4f1079b

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

Change-Id: Ia09f81507b7601216dc3dab60b9651cdd8b14da3
parents f321423a f4f1079b
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -352,8 +352,6 @@ public class DividerView extends FrameLayout implements OnTouchListener,
                minimizeLeft + mMinimizedShadow.getMeasuredWidth(),
                minimizeTop + mMinimizedShadow.getMeasuredHeight());
        if (changed) {
            mWindowManagerProxy.setTouchRegion(new Rect(mHandle.getLeft(), mHandle.getTop(),
                    mHandle.getRight(), mHandle.getBottom()));
            notifySplitScreenBoundsChanged();
        }
    }
@@ -679,6 +677,14 @@ public class DividerView extends FrameLayout implements OnTouchListener,
    private void notifySplitScreenBoundsChanged() {
        mOtherTaskRect.set(mSplitLayout.mSecondary);

        mTmpRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), mHandle.getBottom());
        if (isHorizontalDivision()) {
            mTmpRect.offsetTo(0, mDividerPositionY);
        } else {
            mTmpRect.offsetTo(mDividerPositionX, 0);
        }
        mWindowManagerProxy.setTouchRegion(mTmpRect);

        mTmpRect.set(mSplitLayout.mDisplayLayout.stableInsets());
        switch (mSplitLayout.getPrimarySplitSide()) {
            case WindowManager.DOCKED_LEFT: