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

Commit b44c4439 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 606fadc8: am 6d1e4522: am d9f53c02: Merge "Clear accessibility focus when...

am 606fadc8: am 6d1e4522: am d9f53c02: Merge "Clear accessibility focus when view becomes invisible" into klp-dev

* commit '606fadc8':
  Clear accessibility focus when view becomes invisible
parents 7d8589c1 606fadc8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9035,10 +9035,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();
                }
            }