diff options
author | Pavel Zhamaitsiak <pavelz@google.com> | 2015-03-12 15:29:11 -0700 |
---|---|---|
committer | Pavel Zhamaitsiak <pavelz@google.com> | 2015-03-12 16:44:14 -0700 |
commit | e8616913b43d9356b5556dd0f2cab72d8ab4e875 (patch) | |
tree | b6723132c8672cd5ce0a8ec1f09bf8f8fc4f12a4 /src | |
parent | 1e034fe79a164a12385b077e2aad9ebfaab5e389 (diff) | |
download | packages_apps_Settings-e8616913b43d9356b5556dd0f2cab72d8ab4e875.zip packages_apps_Settings-e8616913b43d9356b5556dd0f2cab72d8ab4e875.tar.gz packages_apps_Settings-e8616913b43d9356b5556dd0f2cab72d8ab4e875.tar.bz2 |
Disable Wi-Fi Calling when getting "registration error" intent.
Bug: 19698057
Change-Id: I403417e08f84014fb9bd9f213fd2b8644e2a6541
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/WifiCallingSettings.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/settings/WifiCallingSettings.java b/src/com/android/settings/WifiCallingSettings.java index 25f1e58..8e2c7ed 100644 --- a/src/com/android/settings/WifiCallingSettings.java +++ b/src/com/android/settings/WifiCallingSettings.java @@ -118,7 +118,7 @@ public class WifiCallingSettings extends SettingsPreferenceFragment @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); - if (action.equals(ImsPhone.REGISTRATION_ERROR)) { + if (action.equals(ImsManager.ACTION_IMS_REGISTRATION_ERROR)) { // If this fragment is active then we are immediately // showing alert on screen. There is no need to add // notification in this case. @@ -127,6 +127,9 @@ public class WifiCallingSettings extends SettingsPreferenceFragment // not show notification, we are changing result code here. setResultCode(Activity.RESULT_CANCELED); + // UX requirement is to disable WFC in case of "permanent" registration failures. + mSwitch.setChecked(false); + showAlert(intent); } } @@ -142,7 +145,7 @@ public class WifiCallingSettings extends SettingsPreferenceFragment mButtonWfcMode.setOnPreferenceChangeListener(this); mIntentFilter = new IntentFilter(); - mIntentFilter.addAction(ImsPhone.REGISTRATION_ERROR); + mIntentFilter.addAction(ImsManager.ACTION_IMS_REGISTRATION_ERROR); } @Override |