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

Commit a92eeb79 authored by Bill Lin's avatar Bill Lin Committed by Android (Google) Code Review
Browse files

Merge "Update divider touch-region with DividerHandle position properly" into sc-dev

parents 8a6ffdc5 fc0278f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -685,9 +685,9 @@ public class DividerView extends FrameLayout implements OnTouchListener,

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