Merge "Instrumentation: Wait for finish when injecting pointer events" into tm-dev

This commit is contained in:
Prabir Pradhan
2022-04-08 15:28:21 +00:00
committed by Android (Google) Code Review

View File

@@ -1181,7 +1181,7 @@ public class Instrumentation {
// Direct the injected event into windows owned by the instrumentation target.
InputManager.getInstance().injectInputEvent(
event, InputManager.INJECT_INPUT_EVENT_MODE_WAIT_FOR_RESULT, Process.myUid());
event, InputManager.INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH, Process.myUid());
if (syncAfter) {
WindowManagerGlobal.getWindowManagerService()