Follow API change in PhoneNumberUtils
Bug: 15432083
Change-Id: I88b5ace925e3704bd032dc9694b0c2dd871b9cf9
diff --git a/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java b/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
index 41d568f..a0a7c00 100644
--- a/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
+++ b/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
@@ -110,7 +110,7 @@
if (resultHandle == null) {
Log.v(this, "Call cancelled (null number), returning...");
return;
- } else if (PhoneNumberUtils.isPotentialLocalEmergencyNumber(resultHandle, context)) {
+ } else if (PhoneNumberUtils.isPotentialLocalEmergencyNumber(context, resultHandle)) {
Log.w(this, "Cannot modify outgoing call to emergency number %s.", resultHandle);
return;
}
@@ -341,7 +341,7 @@
*/
private boolean isPotentialEmergencyNumber(Context context, String handle) {
Log.v(this, "Checking restrictions for number : %s", Log.pii(handle));
- return (handle != null) && PhoneNumberUtils.isPotentialLocalEmergencyNumber(handle,context);
+ return (handle != null) && PhoneNumberUtils.isPotentialLocalEmergencyNumber(context,handle);
}
/**