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

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

Add Rlog.pii for SMSNumberUtils address filtering.

am: 2c93941a

Change-Id: I69d5e045a5ce63591fc7fb1a344af98d2c2ff468
parents d0ef1461 2c93941a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -530,10 +530,11 @@ public class SmsNumberUtils {
     *  Filter the destination number if using VZW sim card.
     */
    public static String filterDestAddr(Phone phone, String destAddr) {
        if (DBG) Rlog.d(TAG, "enter filterDestAddr. destAddr=\"" + destAddr + "\"" );
        if (DBG) Rlog.d(TAG, "enter filterDestAddr. destAddr=\"" + Rlog.pii(TAG, destAddr) + "\"" );

        if (destAddr == null || !PhoneNumberUtils.isGlobalPhoneNumber(destAddr)) {
            Rlog.w(TAG, "destAddr" + destAddr + " is not a global phone number! Nothing changed.");
            Rlog.w(TAG, "destAddr" + Rlog.pii(TAG, destAddr) +
                    " is not a global phone number! Nothing changed.");
            return destAddr;
        }

@@ -553,7 +554,8 @@ public class SmsNumberUtils {

        if (DBG) {
            Rlog.d(TAG, "destAddr is " + ((result != null)?"formatted.":"not formatted."));
            Rlog.d(TAG, "leave filterDestAddr, new destAddr=\"" + (result != null ? result : destAddr) + "\"" );
            Rlog.d(TAG, "leave filterDestAddr, new destAddr=\"" + (result != null ? Rlog.pii(TAG,
                    result) : Rlog.pii(TAG, destAddr)) + "\"");
        }
        return result != null ? result : destAddr;
    }