diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-08 02:50:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-08 02:50:26 +0000 |
commit | d2186758f163f0808379cfdce56223032ed8b437 (patch) | |
tree | 1756a87c6a845b9d81edb95c2e05ac60cbc53411 /java/com/android/dialer/assisteddialing | |
parent | 2de4a3e679ecdaf9a6ea767ce9be5c92472b29d0 (diff) | |
parent | a8d677fce88d2add418cdcc868f2a00b2e2d702e (diff) |
Merge changes I23025e9b,Ic9486b3f
* changes:
Support local emergency phone number check when there are multiple SIMs.
Add additional logging to missed call notification code path
Diffstat (limited to 'java/com/android/dialer/assisteddialing')
-rw-r--r-- | java/com/android/dialer/assisteddialing/Constraints.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/assisteddialing/Constraints.java b/java/com/android/dialer/assisteddialing/Constraints.java index 788b875ff..cae3734be 100644 --- a/java/com/android/dialer/assisteddialing/Constraints.java +++ b/java/com/android/dialer/assisteddialing/Constraints.java @@ -25,6 +25,7 @@ import android.text.TextUtils; import com.android.dialer.common.LogUtil; import com.android.dialer.logging.DialerImpression; import com.android.dialer.logging.Logger; +import com.android.dialer.phonenumberutil.PhoneNumberHelper; import com.android.dialer.strictmode.StrictModeUtils; import com.google.i18n.phonenumbers.NumberParseException; import com.google.i18n.phonenumbers.PhoneNumberUtil; @@ -209,7 +210,7 @@ final class Constraints { // roaming and out of service. boolean result = !PhoneNumberUtils.isEmergencyNumber(numberToCheck) - && !PhoneNumberUtils.isLocalEmergencyNumber(context, numberToCheck); + && !PhoneNumberHelper.isLocalEmergencyNumber(context, numberToCheck); LogUtil.i("Constraints.isNotEmergencyNumber", String.valueOf(result)); return result; } |