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

Commit 2e84a994 authored by Alan Viverette's avatar Alan Viverette
Browse files

Clear accessibility focus when view becomes invisible

BUG: 10912882
Change-Id: I8c7c6906fcf7688ecdfac6649464f088dd812c41
parent c37a5ab5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8887,10 +8887,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
             */
            mPrivateFlags |= PFLAG_DRAWN;
            if (((mViewFlags & VISIBILITY_MASK) == INVISIBLE) && hasFocus()) {
            if (((mViewFlags & VISIBILITY_MASK) == INVISIBLE)) {
                // root view becoming invisible shouldn't clear focus and accessibility focus
                if (getRootView() != this) {
                    clearFocus();
                    if (hasFocus()) clearFocus();
                    clearAccessibilityFocus();
                }
            }