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

Commit c82fb00f authored by Qiang Chen's avatar Qiang Chen Committed by Linux Build Service Account
Browse files

Telephony: Set the value of min match according to one property

CTA requires to match 11 phone numbers, so use the value of the property
"persist.env.c.phone.matchnum" to set it 11 in case of CTA tests, but by
default it is 7 without change.

Change-Id: I8cd4105c06c71af1ad242858d8de474459d96ee1
parent 7d4356e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,8 @@ public class PhoneNumberUtils
    //
    // However, in order to loose match 650-555-1212 and 555-1212, we need to set the min match
    // to 7.
    static final int MIN_MATCH = 7;
    // For CTA and some carrier requirement, we need to change it to 11, it can be set dynamically.
    static final int MIN_MATCH = SystemProperties.getInt("persist.env.c.phone.matchnum", 7);

    /**
     * Checks a given number against the list of