From a1e23ded55895204c74b9c37a4f69da53f912424 Mon Sep 17 00:00:00 2001 From: Pat Manning Date: Thu, 3 Apr 2025 18:36:03 +0100 Subject: [PATCH] Dismiss tasks from center of task, not bottom. Overview shows tooltip the first time it is opened, which blocks the bottom of the task, preventing the touch. By dismissing from the center of the task, we avoid this. Bug: 403883013 Test: DismissTaskFromOverview#testDismissCurrentTaskFromOverview Flag: EXEMPT bugfix Change-Id: I14f3012973ddee0d850db5de284a0efde6122d2c --- tests/tapl/com/android/launcher3/tapl/OverviewTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/OverviewTask.java b/tests/tapl/com/android/launcher3/tapl/OverviewTask.java index 8fbb5e3172..141f695ca3 100644 --- a/tests/tapl/com/android/launcher3/tapl/OverviewTask.java +++ b/tests/tapl/com/android/launcher3/tapl/OverviewTask.java @@ -193,7 +193,7 @@ public final class OverviewTask { // Dismiss the task via flinging it up. final Rect taskBounds = mLauncher.getVisibleBounds(mTask); final int centerX = taskBounds.centerX(); - final int centerY = taskBounds.bottom - 1; + final int centerY = taskBounds.centerY(); mLauncher.executeAndWaitForLauncherEvent( () -> mLauncher.linearGesture(centerX, centerY, centerX, 0, 10, false, LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER),