diff options
author | vadimt <vadimt@google.com> | 2019-01-11 16:56:44 -0800 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-01-11 17:32:05 -0800 |
commit | 579c8c200ddc2ea4d5e1730764c5789ee953facc (patch) | |
tree | c3d03ce9421bfedc0b6242f0a61bfd1a5879fdca /quickstep | |
parent | ff9571b30f75c8575e441c5fb2e4211662dc7494 (diff) | |
download | android_packages_apps_Trebuchet-579c8c200ddc2ea4d5e1730764c5789ee953facc.tar.gz android_packages_apps_Trebuchet-579c8c200ddc2ea4d5e1730764c5789ee953facc.tar.bz2 android_packages_apps_Trebuchet-579c8c200ddc2ea4d5e1730764c5789ee953facc.zip |
Switching from mDevice.pressHome() to mLauncher.pressHome()
Using mDevice.pressHome() was a workaround for the shifted-search bug.
Change-Id: I740db2109af531c55f8ab59a42998bdc329fb72e
Tests: affected tests
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/tests/src/com/android/quickstep/TaplTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/TaplTests.java b/quickstep/tests/src/com/android/quickstep/TaplTests.java index 6a1123e02..347b7ac7c 100644 --- a/quickstep/tests/src/com/android/quickstep/TaplTests.java +++ b/quickstep/tests/src/com/android/quickstep/TaplTests.java @@ -104,7 +104,7 @@ public class TaplTests extends AbstractQuickStepTest { clearLauncherData(); - mDevice.pressHome(); + mLauncher.pressHome(); waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL); waitForResumed("Launcher internal state is still Background"); } @@ -424,7 +424,7 @@ public class TaplTests extends AbstractQuickStepTest { executeOnLauncher(launcher -> assertTrue("Flinging backward didn't scroll widgets", getWidgetsScroll(launcher) < flingForwardY)); - mDevice.pressHome(); + mLauncher.pressHome(); waitForLauncherCondition("Widgets were not closed", launcher -> getWidgetsView(launcher) == null); } |