[automerge] Instrumentation: Wait for finish when injecting pointer events 2p: 8e03ce9a9d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17654828

Bug: 228203157
Bug: 228201593
Change-Id: Ib76a43b23df1418413d7c50f555073206a9843f3
This commit is contained in:
Presubmit Automerger Backend
2022-04-08 13:06:10 +00:00

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()