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

Commit 3e19dafd authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Fix contact lookup with CLIR prefix" into ics

parents 7c4e8709 0e3be24a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1480,6 +1480,13 @@ public class PhoneNumberUtils
     * @hide
     */
    public static String normalizeNumber(String phoneNumber) {
        // chop off CLIR prefix
        if (phoneNumber.startsWith(CLIR_ON)) {
            phoneNumber = phoneNumber.substring(CLIR_ON.length() - 1);
        } else if (phoneNumber.startsWith(CLIR_OFF)) {
            phoneNumber = phoneNumber.substring(CLIR_OFF.length() - 1);
        }

        StringBuilder sb = new StringBuilder();
        int len = phoneNumber.length();
        for (int i = 0; i < len; i++) {