Switching from mDevice.pressHome() to mLauncher.pressHome()

Using mDevice.pressHome() was a workaround for the shifted-search bug.

Change-Id: I740db2109af531c55f8ab59a42998bdc329fb72e
Tests: affected tests
This commit is contained in:
vadimt
2019-01-11 16:56:44 -08:00
parent ff9571b30f
commit 579c8c200d
3 changed files with 4 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ public abstract class AbstractLauncherUiTest {
public void evaluate() throws Throwable {
try {
// Create launcher activity if necessary and bring it to the front.
mDevice.pressHome();
mLauncher.pressHome();
waitForLauncherCondition("Launcher activity wasn't created",
launcher -> launcher != null);