[Provider Model] Show Off if WFC is disabled by user

Bug: 182232693
Test: make and atest
Change-Id: I0ef0a09adb1c9636ec14e0ab71116fd2834f1f97
This commit is contained in:
Zoey Chen
2021-03-12 15:30:07 +08:00
parent 0872d40a75
commit dc1ec2d092

View File

@@ -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);
}