Fix missing text message when WiFi Calling is Off.

Bug: 20124534
Change-Id: I5221c942e7dc43e9fd5c824bb53f69c3da4b229d
diff --git a/src/com/android/settings/WifiCallingSettings.java b/src/com/android/settings/WifiCallingSettings.java
index 5167ab0..740dc9f 100644
--- a/src/com/android/settings/WifiCallingSettings.java
+++ b/src/com/android/settings/WifiCallingSettings.java
@@ -172,10 +172,9 @@
         boolean wfcEnabled = ImsManager.isWfcEnabledByUser(context)
                 && ImsManager.isNonTtyOrTtyOnVolteEnabled(context);
         mSwitch.setChecked(wfcEnabled);
-
         int wfcMode = ImsManager.getWfcMode(context);
         mButtonWfcMode.setValue(Integer.toString(wfcMode));
-        mButtonWfcMode.setSummary(getWfcModeSummary(context, wfcMode));
+        updateButtonWfcMode(context, wfcEnabled, wfcMode);
 
         context.registerReceiver(mIntentReceiver, mIntentFilter);
 
@@ -211,11 +210,15 @@
         ImsManager.setWfcSetting(context, isChecked);
 
         int wfcMode = ImsManager.getWfcMode(context);
+        updateButtonWfcMode(context, isChecked, wfcMode);
+    }
+
+    private void updateButtonWfcMode(Context context, boolean wfcEnabled, int wfcMode) {
         mButtonWfcMode.setSummary(getWfcModeSummary(context, wfcMode));
-        mButtonWfcMode.setEnabled(isChecked);
+        mButtonWfcMode.setEnabled(wfcEnabled);
 
         final PreferenceScreen preferenceScreen = getPreferenceScreen();
-        if (isChecked) {
+        if (wfcEnabled) {
             preferenceScreen.addPreference(mButtonWfcMode);
         } else {
             preferenceScreen.removePreference(mButtonWfcMode);