Drag tasks from center when perfoming dismiss cancel for tests.

Follow up to Change-Id: I14f3012973ddee0d850db5de284a0efde6122d2c

Fix: 412766455
Test: TaplTestsQuickstep#dismissCancel
Flag: EXEMPT bugfix.
Change-Id: Idcf17fe810a935c325d043519d2b8d216b3f5c13
This commit is contained in:
Pat Manning
2025-04-25 16:12:32 +01:00
parent 5e619cd675
commit 8eeaa6009c
2 changed files with 2 additions and 2 deletions
@@ -526,7 +526,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
@Test
@PortraitLandscape
@ScreenRecordRule.ScreenRecord // TODO(b/396447643): Remove screen record.
@ScreenRecordRule.ScreenRecord // TODO(b/412766455): Remove screen record.
public void testDismissCancel() throws Exception {
startTestAppsWithCheck();
Overview overview = mLauncher.goHome().switchToOverview();
@@ -214,7 +214,7 @@ public final class OverviewTask {
final Rect taskBounds = mLauncher.getVisibleBounds(mTask);
final int centerX = taskBounds.centerX();
final int centerY = taskBounds.bottom - 1;
final int centerY = taskBounds.centerY();
final int endCenterY = centerY - (taskBounds.height() / 4);
mLauncher.executeAndWaitForLauncherEvent(
// Set slowDown to true so we do not fling the task at the end of the drag, as