From b8cb393f62e644c3169372b4cd91013092aa9dbf Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 24 Jun 2019 17:05:12 -0700 Subject: [PATCH] TAPL: swiping up from workspace always starts at the screen bottom This avoids accidentally dragging an icon from hotseat on ultra-slow devices. Change-Id: Id2378a25972bc17dd227e7c227bf963fd1c0e4b2 --- tests/tapl/com/android/launcher3/tapl/Workspace.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index 26c7b8f307..62050b9057 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java @@ -213,8 +213,6 @@ public final class Workspace extends Home { @Override protected int getSwipeStartY() { - return mLauncher.getDevice().isNaturalOrientation() ? - mLauncher.waitForLauncherObject("hotseat").getVisibleBounds().top - : mLauncher.getRealDisplaySize().y - 1; + return mLauncher.getRealDisplaySize().y - 1; } } \ No newline at end of file