Merge change 9040

* changes:
  Don't offer to add numbers to the dictionary.
This commit is contained in:
Android (Google) Code Review
2009-07-29 16:48:34 -07:00

View File

@@ -6916,6 +6916,17 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
}
}
boolean hasLetter = false;
for (int i = start; i < end; i++) {
if (Character.isLetter(mTransformed.charAt(i))) {
hasLetter = true;
break;
}
}
if (!hasLetter) {
return null;
}
if (start == end) {
return null;
}