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

This commit is contained in:
Bill Lin
2021-05-18 00:23:46 +00:00
committed by Android (Google) Code Review

View File

@@ -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);