Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ddfca92 authored by Presubmit Automerger Backend's avatar Presubmit Automerger Backend
Browse files

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

[automerge] Instrumentation: Wait for finish when injecting pointer events 2p: 8e03ce9a 2p: 5e82022d

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

Bug: 228203157
Bug: 228201593
Change-Id: I0014785bb38d2b7259a3160814800003a99dcb49
parents b5283915 5e82022d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()