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

Commit b318ef79 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android Git Automerger
Browse files

am 62dbd82a: Fix for IndexOutOfBounds in TextView getWordLimitsAt.

Merge commit '62dbd82a' into gingerbread-plus-aosp

* commit '62dbd82a':
  Fix for IndexOutOfBounds in TextView getWordLimitsAt.
parents d0faf5a2 62dbd82a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7052,14 +7052,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            return -1;
        }

        int end = offset;
        int len = mText.length();
        int end = Math.min(offset, len);

        if (end < 0) {
            return -1;
        }

        int start = end;
        int len = mText.length();

        for (; start > 0; start--) {
            char c = mTransformed.charAt(start - 1);