summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/sim/SimSettings.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java
index 8639f6c..f39f349 100644
--- a/src/com/android/settings/sim/SimSettings.java
+++ b/src/com/android/settings/sim/SimSettings.java
@@ -475,6 +475,14 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
update();
// now use other config screen to active/deactive sim card\
mSwitch.setVisibility(mSwitchVisibility);
+
+ // Disable manual provisioning option to user when
+ // device is in Airplane mode.
+ if (isAirplaneModeOn()) {
+ mSwitch.setEnabled(false);
+ } else {
+ mSwitch.setEnabled(true);
+ }
}
@Override
@@ -511,7 +519,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
// Preference screen has a valid SIM and slot index/SubId.
private boolean isCurrentSubValid() {
boolean isSubValid = false;
- if (!isAirplaneModeOn() && hasCard()) {
+ if (hasCard()) {
List<SubscriptionInfo> sirList =
mSubscriptionManager.getActiveSubscriptionInfoList();
if (sirList != null ) {