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

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

Merge "Clear accessibility focus when view becomes invisible" into klp-dev

parents d7c44ee6 2e84a994
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8895,10 +8895,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();
                }
            }