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

Commit 651d813b authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Fix for text selection at end of line."

parents 1b04ed79 d7d3ad47
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7309,6 +7309,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            char c = mTransformed.charAt(start - 1);
            int type = Character.getType(c);

            // 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 "aaaa, bbbb".
            if (start == end && type == Character.OTHER_PUNCTUATION) continue;

            if (c != '\'' &&
                type != Character.UPPERCASE_LETTER &&
                type != Character.LOWERCASE_LETTER &&