Merge "Checking success of injectInputEvent" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot 2020-05-21 20:29:34 +00:00 committed by Android (Google) Code Review
commit bfe7b44a91
1 changed files with 2 additions and 1 deletions

View File

@ -1159,7 +1159,8 @@ public final class LauncherInstrumentation {
}
final MotionEvent event = getMotionEvent(downTime, currentTime, action, point.x, point.y);
mInstrumentation.getUiAutomation().injectInputEvent(event, true);
assertTrue("injectInputEvent failed",
mInstrumentation.getUiAutomation().injectInputEvent(event, true));
event.recycle();
}