commit | d37848af08be784ce52da09629dce771131ae5e5 | [log] [tgz] |
---|---|---|
author | Svetoslav Ganov <svetoslavganov@google.com> | Tue Sep 20 14:03:55 2011 -0700 |
committer | Svetoslav Ganov <svetoslavganov@google.com> | Tue Sep 20 14:03:59 2011 -0700 |
tree | eb870494258010dee7d0e7161ff3dfb39f1f8053 | |
parent | 0799e951a68de6da496752975fb1c3a5bd61ce28 [diff] |
TextView not adding text to accessibility events. Reversed conditional. bug:5342756 Change-Id: Ia2a523af6f7b12e27275e6095ea1b137768ea14c
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index af820ac..8db6592 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java
@@ -8945,7 +8945,7 @@ final boolean isPassword = hasPasswordTransformationMethod(); if (!isPassword) { CharSequence text = getTextForAccessibility(); - if (TextUtils.isEmpty(text)) { + if (!TextUtils.isEmpty(text)) { event.getText().add(text); } }