Merge "TextView not adding text to accessibility events."
This commit is contained in:
committed by
Android (Google) Code Review
commit
acee06fa62
@@ -8945,7 +8945,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
final boolean isPassword = hasPasswordTransformationMethod();
|
||||
if (!isPassword) {
|
||||
CharSequence text = getTextForAccessibility();
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
if (!TextUtils.isEmpty(text)) {
|
||||
event.getText().add(text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user