Merge "Update divider touch-region with DividerHandle position properly" into sc-dev am: a92eeb798d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14515949 Change-Id: I6cd232d22cac425de364282293a7b527b19cb3d1
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());
|
||||
if (isHorizontalDivision()) {
|
||||
mTmpRect.offsetTo(0, mDividerPositionY);
|
||||
mTmpRect.offsetTo(mHandle.getLeft(), mDividerPositionY);
|
||||
} else {
|
||||
mTmpRect.offsetTo(mDividerPositionX, 0);
|
||||
mTmpRect.offsetTo(mDividerPositionX, mHandle.getTop());
|
||||
}
|
||||
mWindowManagerProxy.setTouchRegion(mTmpRect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user