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

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

am b318ef79: am 62dbd82a: Fix for IndexOutOfBounds in TextView getWordLimitsAt.

Merge commit 'b318ef79'

* commit 'b318ef79':
  Fix for IndexOutOfBounds in TextView getWordLimitsAt.
parents 0a84244d b318ef79
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7113,14 +7113,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);