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

Commit 1cc2acf7 authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

Use Character.codePointAt().

We were mistakenly using CharSequence#codePointAt().

Change-Id: Id655fd4993f70140cde54ea8e5b4d39111402046
parent 06ddf426
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1431,7 +1431,7 @@ public class TextUtils {
    public static boolean isGraphic(CharSequence str) {
        final int len = str.length();
        for (int cp, i=0; i<len; i+=Character.charCount(cp)) {
            cp = str.codePointAt(i);
            cp = Character.codePointAt(str, i);
            int gc = Character.getType(cp);
            if (gc != Character.CONTROL
                    && gc != Character.FORMAT