Merge "TextView not adding text to accessibility events."

This commit is contained in:
Svetoslav Ganov
2011-09-20 14:57:57 -07:00
committed by Android (Google) Code Review

View File

@@ -8945,7 +8945,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
final boolean isPassword = hasPasswordTransformationMethod(); final boolean isPassword = hasPasswordTransformationMethod();
if (!isPassword) { if (!isPassword) {
CharSequence text = getTextForAccessibility(); CharSequence text = getTextForAccessibility();
if (TextUtils.isEmpty(text)) { if (!TextUtils.isEmpty(text)) {
event.getText().add(text); event.getText().add(text);
} }
} }