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

Commit a29b65a3 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Clear accessibility focus when the window loses visibility"

parents c5ea9fae 7dbc3bfd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1326,6 +1326,11 @@ public final class ViewRootImpl implements ViewParent,
            }
        }

        // Non-visible windows can't hold accessibility focus.
        if (mAttachInfo.mWindowVisibility != View.VISIBLE) {
            host.clearAccessibilityFocus();
        }

        // Execute enqueued actions on every traversal in case a detached view enqueued an action
        getRunQueue().executeActions(mAttachInfo.mHandler);