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

Commit d7d3ad47 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Fix for text selection at end of line.

Bug 3106935

Change-Id: Ieee7f50385baae359db45472ffc800a01956cb40
parent 027610a7
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 &&