Merge "Populate 'hasKnownUserIntentEmergency' flag" am: a870c25fd9
am: 90c054490b
Change-Id: If9d5d2a3b181238f32ca26d7175e1fc2758adc30
diff --git a/src/com/android/phone/EmergencyDialer.java b/src/com/android/phone/EmergencyDialer.java
index d7443d5..65edcf9 100644
--- a/src/com/android/phone/EmergencyDialer.java
+++ b/src/com/android/phone/EmergencyDialer.java
@@ -905,6 +905,13 @@
private void placeCall(String number, int callSource, ShortcutViewUtils.PhoneInfo phone) {
Bundle extras = new Bundle();
extras.putInt(TelecomManager.EXTRA_CALL_SOURCE, callSource);
+ /**
+ * This is used for Telecom and Telephony to tell modem user's intent is emergency call,
+ * when the dialed number is ambiguous and identified as both emergency number and any
+ * other non-emergency number; e.g. in some situation, 611 could be both an emergency
+ * number in a country and a non-emergency number of a carrier's customer service hotline.
+ */
+ extras.putBoolean(TelecomManager.EXTRA_IS_USER_INTENT_EMERGENCY_CALL, true);
if (phone != null && phone.getPhoneAccountHandle() != null) {
// Requests to dial through the specified phone.