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

Commit 8f198c4b authored by Daisuke Miyakawa's avatar Daisuke Miyakawa Committed by Android (Google) Code Review
Browse files

Merge "Honor '+' in phone export in vCard."

parents 1d91f2e4 900731de
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -689,7 +689,9 @@ public class VCardBuilder {
        final int length = phoneNumber.length();
        for (int i = 0; i < length; i++) {
            final char ch = phoneNumber.charAt(i);
            if (Character.isDigit(ch)) {
            // TODO: add a test case for string with '+', and care the other possible issues
            // which may happen by ignoring non-digits other than '+'.
            if (Character.isDigit(ch) || ch == '+') {
                builder.append(ch);
            } else if ((ch == ';' || ch == '\n') && builder.length() > 0) {
                phoneList.add(builder.toString());