Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingDividerWindowManager.kt +4 −4 Original line number Diff line number Diff line Loading @@ -70,10 +70,10 @@ class DesktopTilingDividerWindowManager( private var handleRegionSize: Size = Size( displayContext.resources.getDimensionPixelSize( R.dimen.split_divider_handle_region_width R.dimen.split_divider_handle_region_height ), displayContext.resources.getDimensionPixelSize( R.dimen.split_divider_handle_region_height R.dimen.split_divider_handle_region_width ), ) private var setTouchRegion = true Loading Loading @@ -114,7 +114,7 @@ class DesktopTilingDividerWindowManager( val centerY = divider.height() / 2f val handleLeft = centerX - handle.width() / 2f val handleRight = handleLeft + handle.width() val dividerLeft = centerY - divider.width() / 2f val dividerLeft = centerX - divider.width() / 2f val dividerRight = dividerLeft + divider.width() val dividerTop = cornerRadius Loading Loading @@ -371,7 +371,7 @@ class DesktopTilingDividerWindowManager( private fun updateTouchRegion() { val startX = -handleRegionSize.width / 2 val handle = Rect(startX, 0, startX + handleRegionSize.width, dividerBounds.height()) val handle = Rect(startX, 0, startX + handleRegionSize.width, handleRegionSize.height) setTouchRegion(handle, dividerBounds, maxRoundedCornerRadius.toFloat()) } Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/TilingDividerView.kt +6 −2 Original line number Diff line number Diff line Loading @@ -154,8 +154,12 @@ class TilingDividerView : FrameLayout, View.OnTouchListener, DragDetector.Motion } } override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon = PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW) override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon { if (isWithinHandleRegion(event.y.toInt())) { return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW) } return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_ARROW) } override fun onTouch(v: View, event: MotionEvent): Boolean = dragDetector.onMotionEvent(v, event) Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingDividerWindowManager.kt +4 −4 Original line number Diff line number Diff line Loading @@ -70,10 +70,10 @@ class DesktopTilingDividerWindowManager( private var handleRegionSize: Size = Size( displayContext.resources.getDimensionPixelSize( R.dimen.split_divider_handle_region_width R.dimen.split_divider_handle_region_height ), displayContext.resources.getDimensionPixelSize( R.dimen.split_divider_handle_region_height R.dimen.split_divider_handle_region_width ), ) private var setTouchRegion = true Loading Loading @@ -114,7 +114,7 @@ class DesktopTilingDividerWindowManager( val centerY = divider.height() / 2f val handleLeft = centerX - handle.width() / 2f val handleRight = handleLeft + handle.width() val dividerLeft = centerY - divider.width() / 2f val dividerLeft = centerX - divider.width() / 2f val dividerRight = dividerLeft + divider.width() val dividerTop = cornerRadius Loading Loading @@ -371,7 +371,7 @@ class DesktopTilingDividerWindowManager( private fun updateTouchRegion() { val startX = -handleRegionSize.width / 2 val handle = Rect(startX, 0, startX + handleRegionSize.width, dividerBounds.height()) val handle = Rect(startX, 0, startX + handleRegionSize.width, handleRegionSize.height) setTouchRegion(handle, dividerBounds, maxRoundedCornerRadius.toFloat()) } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/TilingDividerView.kt +6 −2 Original line number Diff line number Diff line Loading @@ -154,8 +154,12 @@ class TilingDividerView : FrameLayout, View.OnTouchListener, DragDetector.Motion } } override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon = PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW) override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon { if (isWithinHandleRegion(event.y.toInt())) { return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW) } return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_ARROW) } override fun onTouch(v: View, event: MotionEvent): Boolean = dragDetector.onMotionEvent(v, event) Loading