Merge "[Provider Model] Show Off if WFC is disabled by user" into sc-dev am: 8d73578b5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13849826 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4d251557d1f07d58aca263070e764ada5dd1aec1
This commit is contained in:
@@ -217,7 +217,12 @@ public class NetworkProviderWifiCallingGroup extends
|
||||
pref.setEnabled(getTelephonyManagerForSubscriptionId(subId).getCallState()
|
||||
== TelephonyManager.CALL_STATE_IDLE);
|
||||
pref.setOrder(order++);
|
||||
pref.setSummary(R.string.calls_sms_wfc_summary);
|
||||
|
||||
int resId = com.android.internal.R.string.wifi_calling_off_summary;
|
||||
if (queryImsState(subId).isEnabledByUser()) {
|
||||
resId = R.string.calls_sms_wfc_summary;
|
||||
}
|
||||
pref.setSummary(resId);
|
||||
|
||||
mWifiCallingForSubPreferences.put(subId, pref);
|
||||
}
|
||||
|
Reference in New Issue
Block a user