Merge "Assisted dialing support of MO SMS" into lmp-dev

This commit is contained in:
Amit Mahajan
2014-09-08 23:56:30 +00:00
committed by Android (Google) Code Review

View File

@@ -2316,8 +2316,9 @@ public class PhoneNumberUtils
/**
* This function checks if the passed in string conforms to the NANP format
* i.e. NXX-NXX-XXXX, N is any digit 2-9 and X is any digit 0-9
* @hide
*/
private static boolean isNanp (String dialStr) {
public static boolean isNanp (String dialStr) {
boolean retVal = false;
if (dialStr != null) {
if (dialStr.length() == NANP_LENGTH) {