summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/java/android/widget/TextView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index 751cd53..d21870c 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -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;
}