Simplifying switching to home for some tests

Change-Id: I696d0267a2c36a18080396657bed07f7b1654a7d
This commit is contained in:
vadimt
2019-07-12 12:26:08 -07:00
parent 59b5b3f2a2
commit d91cec72fe
8 changed files with 16 additions and 32 deletions

View File

@@ -55,7 +55,7 @@ public class AddWidgetTest extends AbstractLauncherUiTest {
private void performTest() throws Throwable {
clearHomescreen();
mActivityMonitor.startLauncher();
mDevice.pressHome();
final LauncherAppWidgetProviderInfo widgetInfo =
TestViewHelpers.findWidgetProvider(this, false /* hasConfigureScreen */);