Merge "Granular navigation not possible in edit text if the view has content description." into jb-mr1-dev

This commit is contained in:
Svetoslav Ganov
2012-09-06 19:14:30 -07:00
committed by Android (Google) Code Review

View File

@@ -8355,7 +8355,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
*/
@Override
public CharSequence getIterableTextForAccessibility() {
if (getContentDescription() == null) {
if (!TextUtils.isEmpty(mText)) {
if (!(mText instanceof Spannable)) {
setText(mText, BufferType.SPANNABLE);
}