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

Commit 747467e1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix UiAutomation to correctly wait for idleness"

parents 3bc5925f a5eacc0a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1667,7 +1667,9 @@ public final class UiAutomation {
                        if (isGenerationChangedLocked()) {
                            return;
                        }
                        mLastEventTimeMillis = event.getEventTime();
                        // It is not guaranteed that the accessibility framework sends events by the
                        // order of event timestamp.
                        mLastEventTimeMillis = Math.max(mLastEventTimeMillis, event.getEventTime());
                        if (mWaitingForEventDelivery) {
                            mEventQueue.add(AccessibilityEvent.obtain(event));
                        }