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

Commit c357df12 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fixing bug 2502522 - Accessibility events contain text of invisible views"

parents 80ea00c8 be756594
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) {