From 2347774b45333880760fa1684309af83e708b85e Mon Sep 17 00:00:00 2001 From: Muhammed Siju Date: Tue, 20 Jul 2021 23:49:08 +0530 Subject: [PATCH] IMS: Fix WFC summary text for IMS preferred mode When IMS preferred mode is selected, summary text for Wifi Calling preference is wrongly showing as Wifi Calling Off. Fix it by adding mapping of IMS preferred mode to the summary string. Change-Id: I45d2b4fac58898201d32737b54754e092d4c936e CRs-Fixed: 2991120 --- .../network/telephony/WifiCallingPreferenceController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/settings/network/telephony/WifiCallingPreferenceController.java b/src/com/android/settings/network/telephony/WifiCallingPreferenceController.java index 32be36e325e..75654df6c18 100644 --- a/src/com/android/settings/network/telephony/WifiCallingPreferenceController.java +++ b/src/com/android/settings/network/telephony/WifiCallingPreferenceController.java @@ -36,6 +36,7 @@ import androidx.preference.Preference; import androidx.preference.PreferenceScreen; +import com.android.ims.ImsConfig; import com.android.settings.R; import com.android.settings.network.ims.WifiCallingQueryImsState; import com.android.settingslib.core.lifecycle.LifecycleObserver; @@ -154,6 +155,9 @@ private CharSequence getResourceIdForWfcMode(int subId) { case ImsMmTelManager.WIFI_MODE_WIFI_PREFERRED: resId = com.android.internal.R.string.wfc_mode_wifi_preferred_summary; break; + case ImsConfig.WfcModeFeatureValueConstants.IMS_PREFERRED: + resId = com.android.internal.R.string.wfc_mode_ims_preferred_summary; + break; default: break; }