Add handling of RADIO_NOT_AVAILABLE in TimeConsumingPreferenceActivity
Bug: 19573535
Change-Id: I7fbbecc465af3830bee9e215ee75485747aed192
diff --git a/src/com/android/phone/TimeConsumingPreferenceActivity.java b/src/com/android/phone/TimeConsumingPreferenceActivity.java
index bab9469..08a5a95 100644
--- a/src/com/android/phone/TimeConsumingPreferenceActivity.java
+++ b/src/com/android/phone/TimeConsumingPreferenceActivity.java
@@ -179,6 +179,8 @@
public void onException(Preference preference, CommandException exception) {
if (exception.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) {
onError(preference, FDN_CHECK_FAILURE);
+ } else if (exception.getCommandError() == CommandException.Error.RADIO_NOT_AVAILABLE) {
+ onError(preference, RADIO_OFF_ERROR);
} else {
preference.setEnabled(false);
onError(preference, EXCEPTION_ERROR);