Follow API change in PhoneNumberUtils
Bug: 15432083
Change-Id: I88b5ace925e3704bd032dc9694b0c2dd871b9cf9
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java
index 986c366..f7f5028 100644
--- a/src/com/android/phone/CallNotifier.java
+++ b/src/com/android/phone/CallNotifier.java
@@ -737,8 +737,8 @@
if (fgPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
Connection c = fgPhone.getForegroundCall().getLatestConnection();
- if ((c != null) && (PhoneNumberUtils.isLocalEmergencyNumber(c.getAddress(),
- mApplication))) {
+ if ((c != null) && (PhoneNumberUtils.isLocalEmergencyNumber(mApplication,
+ c.getAddress()))) {
if (VDBG) log("onPhoneStateChanged: it is an emergency call.");
Call.State callState = fgPhone.getForegroundCall().getState();
if (mEmergencyTonePlayerVibrator == null) {
@@ -1039,7 +1039,7 @@
final String number = c.getAddress();
final Phone phone = c.getCall().getPhone();
final boolean isEmergencyNumber =
- PhoneNumberUtils.isLocalEmergencyNumber(number, mApplication);
+ PhoneNumberUtils.isLocalEmergencyNumber(mApplication, number);
if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
if ((isEmergencyNumber)