[Settings] Should not show WFC UI in the SIM page if the SIM does not

support WFC

Bug: 270792637
Test: manual
Change-Id: Ic67bd2e766d66c91fc4b0fcf5a5355debd805ac6
This commit is contained in:
Zoey Chen
2023-03-20 08:51:12 +00:00
parent ce77de4240
commit cb4e0bd018
4 changed files with 10 additions and 22 deletions

View File

@@ -257,7 +257,8 @@ public class WifiCallingSettings extends SettingsPreferenceFragment
for (SubscriptionInfo subInfo : subInfoList) {
int subId = subInfo.getSubscriptionId();
try {
if (queryImsState(subId).isWifiCallingProvisioned()) {
if (MobileNetworkUtils.isWifiCallingEnabled(getContext(), subId,
queryImsState(subId), null)) {
selectedList.add(subInfo);
}
} catch (Exception exception) {}