Merge "Update divider touch-region with DividerHandle position properly" into sc-dev
This commit is contained in:
@@ -685,9 +685,9 @@ public class DividerView extends FrameLayout implements OnTouchListener,
|
|||||||
|
|
||||||
mTmpRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), mHandle.getBottom());
|
mTmpRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), mHandle.getBottom());
|
||||||
if (isHorizontalDivision()) {
|
if (isHorizontalDivision()) {
|
||||||
mTmpRect.offsetTo(0, mDividerPositionY);
|
mTmpRect.offsetTo(mHandle.getLeft(), mDividerPositionY);
|
||||||
} else {
|
} else {
|
||||||
mTmpRect.offsetTo(mDividerPositionX, 0);
|
mTmpRect.offsetTo(mDividerPositionX, mHandle.getTop());
|
||||||
}
|
}
|
||||||
mWindowManagerProxy.setTouchRegion(mTmpRect);
|
mWindowManagerProxy.setTouchRegion(mTmpRect);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user