diff options
Diffstat (limited to 'src/com/android/settings/sim/SimSettings.java')
-rw-r--r-- | src/com/android/settings/sim/SimSettings.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java index 6c9057d8f..6748489ba 100644 --- a/src/com/android/settings/sim/SimSettings.java +++ b/src/com/android/settings/sim/SimSettings.java @@ -484,11 +484,13 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable mSwitch.setVisibility(mSwitchVisibility); // Disable manual provisioning option to user when - // device is in Airplane mode. - if (isAirplaneModeOn()) { - mSwitch.setEnabled(false); + // device is in Airplane mode. Hide it if the extphone framework + // is not present, as the operation relies on said framework. + if (mExtTelephony == null) { + mSwitch.setVisibility(View.GONE); } else { - mSwitch.setEnabled(true); + mSwitch.setVisibility(View.VISIBLE); + mSwitch.setEnabled(!isAirplaneModeOn()); } } |