From c8601013d598444eec496bc6c75f5e1959d4ccae Mon Sep 17 00:00:00 2001 From: Brad Ebinger Date: Tue, 19 Jul 2016 14:09:23 -0700 Subject: [PATCH] Add CarrierConfig to remove hold during Ims Calls Adds a Carrier Config key to specify whether an IMS call supports holding. If not, the CAPABILITY_HOLD and CAPABILITY_SUPPORT_HOLD are not added to the Connection. Bug: 30195356 Change-Id: I9b16b385a2b90118453d484be5af4f173b199ab1 --- telephony/java/android/telephony/CarrierConfigManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 3052cdb205520..4a2da2778b538 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -836,6 +836,12 @@ public class CarrierConfigManager { public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL = "allow_merge_wifi_calls_when_vowifi_off_bool"; + /** + * Flag indicating whether the carrier supports the Hold command while in an IMS call. + * @hide + */ + public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call"; + /** * When true, indicates that adding a call is disabled when there is an ongoing video call * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is @@ -868,6 +874,7 @@ public class CarrierConfigManager { static { sDefaults = new PersistableBundle(); + sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true); sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true); sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false); sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);