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

This commit is contained in:
Amith Yamasani
2010-03-10 12:53:20 -08:00
committed by Android (Google) Code Review

View File

@@ -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) {