Add wifi calling setting in phone's call settings.
+ Redirects to the MobileNetworkSettings activity.
+ Remove preference if WFC is not supported.
Bug: 18977746
Change-Id: Id4e1f3f089414d1120195a9271e31983a12c957a
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java
index eae9bfc..ba77dd0 100644
--- a/src/com/android/phone/CallFeaturesSetting.java
+++ b/src/com/android/phone/CallFeaturesSetting.java
@@ -1337,6 +1337,12 @@
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
}
+
+ if (!ImsManager.isWfcEnabledByPlatform(mPhone.getContext())) {
+ Preference wifiCallingSettings = findPreference(
+ getResources().getString(R.string.wifi_calling_settings_key));
+ prefSet.removePreference(wifiCallingSettings);
+ }
}
@Override