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

Commit 4268b243 authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Handle normalization of a "null" phone number."

parents f8c94073 b31c310f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1492,6 +1492,10 @@ public class PhoneNumberUtils
     * @return the normalized number.
     */
    public static String normalizeNumber(String phoneNumber) {
        if (TextUtils.isEmpty(phoneNumber)) {
            return "";
        }

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