Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e287cc authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 9040

* changes:
  Don't offer to add numbers to the dictionary.
parents ba58c6f2 56cf7889
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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;
        }