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

Commit 2bc248b6 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Off by one index error in word selection

Change-Id: Ia6b14b22cc5cf65a235bcdf7cbec48bd76f74460
parent 89f8d63a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7646,7 +7646,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            if (start == end) {
                // Cases where the text ends with a '.' and we select from the end of the line
                // (right after the dot), or when we select from the space character in "aaa, bbb".
                final char c = mTransformed.charAt(start);
                final char c = mTransformed.charAt(start - 1);
                final int type = Character.getType(c);
                if (type == Character.OTHER_PUNCTUATION) continue;
            }