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

Commit be756594 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Fixing bug 2502522 - Accessibility events contain text of invisible views

Change-Id: I0eccc82ad9f3139e46942cb61212bb83f992c173
parent 4aaf256e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6989,6 +6989,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

    @Override
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        if (!isShown()) {
            return false;
        }

        final boolean isPassword = isPasswordInputType(mInputType);

        if (!isPassword) {