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

Commit 531ded55 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Added missing comments in Instrumentation#sendStringSync"

parents 55c6ccce f434e379
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -838,6 +838,11 @@ public class Instrumentation {

        if (events != null) {
            for (int i = 0; i < events.length; i++) {
                // We have to change the time of an event before injecting it because
                // all KeyEvents returned by KeyCharacterMap.getEvents() have the same
                // time stamp and the system rejects too old events. Hence, it is
                // possible for an event to become stale before it is injected if it
                // takes too long to inject the preceding ones.
                sendKeySync(KeyEvent.changeTimeRepeat(events[i], SystemClock.uptimeMillis(), 0));
            }
        }