Merge "Adding logging pressHome()" into ub-launcher3-master

This commit is contained in:
Vadim Tryshev 2018-09-19 20:15:46 +00:00 committed by Android (Google) Code Review
commit 9a9e43461f
1 changed files with 4 additions and 1 deletions

View File

@ -225,7 +225,10 @@ public final class LauncherInstrumentation {
// otherwise waitForIdle may return immediately in case when there was a big enough pause in
// accessibility events prior to pressing Home.
executeAndWaitForEvent(
() -> getSystemUiObject("home").click(),
() -> {
log("LauncherInstrumentation.pressHome before clicking");
getSystemUiObject("home").click();
},
event -> true,
"Pressing Home didn't produce any events");
mDevice.waitForIdle();