Skip to content
Commit fc0278f7 authored by Bill Lin's avatar Bill Lin
Browse files

Update divider touch-region with DividerHandle position properly

Context : ag/11948950
The divider view itself isn't really relayouted (because now
it's surface just gets moved around). This means we actually
need to update its touch region when moving the surface instead
of in relayout. Additionally, because the views themselves
don't move, update the touch-region from divider position
instead.

What changes:
After onLayout() mHandle has the final position on screen,
we reference mHandle's left or top position based on orientation
and update for corresponding touch-region

Test: atest WMShellUnitTests
Test: Enable A11y talkback, check the divider handle can be focused
Test: add log in notifySplitScreenBoundsChanged() check the split
      handle touch region dose NOT locate at screen left or top edge

Bug: 175687842
Change-Id: I7530e3e1daa373926654c3ae8bc2084566650d62
parent a0e43e71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment