Limit home gesture distance to half of screen height

- Somehow when home gesture's travel distance is above certain number (~2560px in the bug's case), the touch will wrongly go to the 3P launcher instead of staying in quickstep launcehr only. As it's unusal for home gesture to be so long, limiting it to half of screen height.

Bug: 214279686
Test: presbumit and TaplTestsLauncher3#testWidgets on cf_tablet
Change-Id: I1107074556aea3011b186ba34dc830dbb1445517
This commit is contained in:
Alex Chau committed 2022-01-13 22:08:40 +00:00
1 parent b92b229a80
commit a472190c8a
1 file changed
+1 -1
@@ -864,7 +864,7 @@ public final class LauncherInstrumentation {
swipeToState(
displaySize.x / 2, displaySize.y - 1,
displaySize.x / 2, 0,
displaySize.x / 2, displaySize.y / 2,
ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME, NORMAL_STATE_ORDINAL,
gestureStartFromLauncher ? GestureScope.INSIDE_TO_OUTSIDE
: GestureScope.OUTSIDE_WITH_PILFER);