diff options
author | Luca Stefani <luca.stefani.ge1@gmail.com> | 2016-07-03 21:56:08 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-07-05 16:21:20 -0700 |
commit | e64a234e25e61a906c94b3ba0a87f322c3caaaac (patch) | |
tree | b0ef1203e1f88ac123aede0d9bd7fa404089d198 /src/com | |
parent | c55609462bc8c1986a3f7199cd19963db6522106 (diff) | |
download | packages_apps_Settings-e64a234e25e61a906c94b3ba0a87f322c3caaaac.zip packages_apps_Settings-e64a234e25e61a906c94b3ba0a87f322c3caaaac.tar.gz packages_apps_Settings-e64a234e25e61a906c94b3ba0a87f322c3caaaac.tar.bz2 |
Settings: Disable sim switch if subscription isn't valid
Change-Id: I22ba9a3270da13f77fdd43586b7dc487f0929453
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/sim/SimSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java index 2b9c3fe..88ed36f 100644 --- a/src/com/android/settings/sim/SimSettings.java +++ b/src/com/android/settings/sim/SimSettings.java @@ -516,7 +516,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable mSwitch.setVisibility(View.GONE); } else { mSwitch.setVisibility(View.VISIBLE); - mSwitch.setEnabled(!isAirplaneModeOn()); + mSwitch.setEnabled(!isAirplaneModeOn() && isCurrentSubValid()); } } |