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

This commit is contained in:
Evan Rosky
2020-06-22 21:34:51 +00:00
committed by Android (Google) Code Review

View File

@@ -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: