From a472190c8a3ab0a523947819da87cea45c6a346e Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Thu, 13 Jan 2022 22:08:40 +0000 Subject: [PATCH] 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 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index bc2afaf8c4..17d3a72232 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -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);