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

Commit 60c202e2 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Ensure *# are included in TTS spans generated with PhoneNumberUtils." into oc-mr1-dev

am: e3cf5cda

Change-Id: I1802be47585e42ecf7d09e6b523ae6ef1f6b0556
parents 852adc2d e3cf5cda
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2540,11 +2540,11 @@ public class PhoneNumberUtils
    }

    // Split a phone number like "+20(123)-456#" using spaces, ignoring anything that is not
    // a digit, to produce a result like "20 123 456".
    // a digit or the characters * and #, to produce a result like "20 123 456#".
    private static String splitAtNonNumerics(CharSequence number) {
        StringBuilder sb = new StringBuilder(number.length());
        for (int i = 0; i < number.length(); i++) {
            sb.append(PhoneNumberUtils.isISODigit(number.charAt(i))
            sb.append(PhoneNumberUtils.is12Key(number.charAt(i))
                    ? number.charAt(i)
                    : " ");
        }