From 015d44aee3192710459e5f941067a9053adc788e Mon Sep 17 00:00:00 2001 From: Andras Kloczl Date: Wed, 27 Apr 2022 12:24:43 +0100 Subject: [PATCH] Cleanup tapl test workaround There was a bug in the framework (b/219711163) so we needed a workaround to make the tapl test pass. Test: Run TAPL tests Bug: 219919285 Change-Id: I3eb4ca8c5b1d24f38330ad41b58c31c81eb01501 --- tests/tapl/com/android/launcher3/tapl/Workspace.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index fee449011d..ae0f6a6e12 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java @@ -389,8 +389,7 @@ public final class Workspace extends Home { // Since the destination can be on another page, we need to drag to the edge first // until we reach the target page while (targetDest.x > displayX || targetDest.x < 0) { - // TODO: b/219919285 - int edgeX = targetDest.x > 0 ? displayX - 1 : 1; + int edgeX = targetDest.x > 0 ? displayX : 0; Point screenEdge = new Point(edgeX, targetDest.y); Point finalDragStart = dragStart; executeAndWaitForPageScroll(launcher,