Populate 'hasKnownUserIntentEmergency' flag
This is only used to specify when the dialed number is ambiguous,
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.
Bug: 123999640
Test: Manual
Change-Id: I81feccc8a2e051ee5d371cbf8c0f56f82c4e1390
Merged-In: I81feccc8a2e051ee5d371cbf8c0f56f82c4e1390
(cherry picked from commit 721a255991379a69d8bed83c571c6f656740b8fd)
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.