diff options
author | Christopher R. Palmer <crpalmer@gmail.com> | 2015-11-24 06:50:12 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-25 13:36:56 -0800 |
commit | 6fa7309b9ee5d7c92a8ceaab4fdb6d6ffdac1f1b (patch) | |
tree | 20c3d9f074cd715064be6873536a18306c1c93e6 /src/com | |
parent | bfefa433030c98a449b74e1538e4a9af04d6d76a (diff) | |
download | packages_apps_Settings-6fa7309b9ee5d7c92a8ceaab4fdb6d6ffdac1f1b.zip packages_apps_Settings-6fa7309b9ee5d7c92a8ceaab4fdb6d6ffdac1f1b.tar.gz packages_apps_Settings-6fa7309b9ee5d7c92a8ceaab4fdb6d6ffdac1f1b.tar.bz2 |
settings: Only show mobile_networks if we have telephony
Change-Id: I937eaca7abefb4354cc274d5d5934a33149f4414
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/SettingsActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index c8c8ec7..28204b4 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java @@ -1265,6 +1265,10 @@ public class SettingsActivity extends Activity if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { removeTile = true; } + } else if (id == R.id.mobile_networks) { + if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { + removeTile = true; + } } else if (id == R.id.data_usage_settings) { // Remove data usage when kernel module not enabled if (!Utils.isBandwidthControlEnabled()) { @@ -1556,3 +1560,4 @@ public class SettingsActivity extends Activity } } + |