Remove DTMF length setting.
+ Add interface for checking the config to determine if the user can
change the DTMF tone length or if the device is a world phone:.
- Remove DTMF length logic, layouts, and strings. This is moved to
the Dialer application, where it can be placed in context of the
other sound-related settings.
Bug: 19372734
Change-Id: If9b4b07ffbe82704a38d1d1ec53ad5e6509e8dd7
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 246c376..2162c36 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2235,6 +2235,16 @@
&& mTelephonySharedPreferences.getBoolean(PREF_ENABLE_VIDEO_CALLING, true);
}
+ @Override
+ public boolean canChangeDtmfToneLength() {
+ return mPhone.getContext().getResources().getBoolean(R.bool.dtmf_type_enabled);
+ }
+
+ @Override
+ public boolean isWorldPhone() {
+ return mPhone.getContext().getResources().getBoolean(R.bool.world_phone);
+ }
+
/**
* Returns the unique device ID of phone, for example, the IMEI for
* GSM and the MEID for CDMA phones. Return null if device ID is not available.