Standardize RTT behavior across carriers
Remove references to the ignore rtt setting carrier config key, and
treat it as always-on for all carriers. Also turn on RTT in the IMS
stack when there's no SIM card inserted so that emergency calls can use
RTT in that scenario.
Bug: 122250491
Bug: 130010750
Test: manual
Change-Id: I6e39c9cb9f2fc70cf67afb6ffbf369f66d4449e0
Merged-In: I6e39c9cb9f2fc70cf67afb6ffbf369f66d4449e0
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 27c1a0b..326e7c6 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -5694,12 +5694,7 @@
public boolean isRttEnabled(int subscriptionId) {
final long identity = Binder.clearCallingIdentity();
try {
- boolean isRttSupported = isRttSupported(subscriptionId);
- boolean isUserRttSettingOn = Settings.Secure.getInt(
- mApp.getContentResolver(), Settings.Secure.RTT_CALLING_MODE, 0) != 0;
- boolean shouldIgnoreUserRttSetting = mApp.getCarrierConfigForSubId(subscriptionId)
- .getBoolean(CarrierConfigManager.KEY_IGNORE_RTT_MODE_SETTING_BOOL);
- return isRttSupported && (isUserRttSettingOn || shouldIgnoreUserRttSetting);
+ return isRttSupported(subscriptionId);
} finally {
Binder.restoreCallingIdentity(identity);
}