Add carrier config for hiding TTY HCO and VCO

Add a carrier config option that will hide the HCO and VCO options for
TTY if RTT is available on the device.

Fixes: 137672992
Test: manual
Change-Id: I7a2ca247a3bf06e6a2b244656add78bb0449674b
This commit is contained in:
Hall Liu
2019-07-29 17:30:12 -07:00
parent 2cc5346954
commit 3a23d7e63d

View File

@@ -2311,6 +2311,13 @@ public class CarrierConfigManager {
*/
public static final String KEY_RTT_DOWNGRADE_SUPPORTED_BOOL = "rtt_downgrade_supported_bool";
/**
* Indicates if the TTY HCO and VCO options should be hidden in the accessibility menu
* if the device is capable of RTT.
* @hide
*/
public static final String KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL = "hide_tty_hco_vco_with_rtt";
/**
* The flag to disable the popup dialog which warns the user of data charges.
* @hide
@@ -3350,6 +3357,7 @@ public class CarrierConfigManager {
sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true);
sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);