diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-02-25 17:25:38 -0800 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-02-25 17:25:38 -0800 |
commit | 4ad4b4fdf7a36820ffc3a1048d8d7e030ead4591 (patch) | |
tree | 014a1a23ff8328c716c73480c686600ead07b9ed /src/com/android/settings/WirelessSettings.java | |
parent | 8639a46a22a10e8a27ed5dbaea53a04f83d1d136 (diff) | |
download | packages_apps_settings-4ad4b4fdf7a36820ffc3a1048d8d7e030ead4591.zip packages_apps_settings-4ad4b4fdf7a36820ffc3a1048d8d7e030ead4591.tar.gz packages_apps_settings-4ad4b4fdf7a36820ffc3a1048d8d7e030ead4591.tar.bz2 |
Just use device configuration for Tethering.
Don't need extra code here if the device is configured propertly.
Change-Id: Ieb65e36c1c91a62bbb0c8619e2efb34735fbb564
Diffstat (limited to 'src/com/android/settings/WirelessSettings.java')
-rw-r--r-- | src/com/android/settings/WirelessSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/WirelessSettings.java b/src/com/android/settings/WirelessSettings.java index 9567c01..b1b7e6e 100644 --- a/src/com/android/settings/WirelessSettings.java +++ b/src/com/android/settings/WirelessSettings.java @@ -148,7 +148,7 @@ public class WirelessSettings extends SettingsPreferenceFragment { // Disable Tethering if it's not allowed or if it's a wifi-only device ConnectivityManager cm = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE); - if (!cm.isTetheringSupported() || Utils.isWifiOnly()) { + if (!cm.isTetheringSupported()) { getPreferenceScreen().removePreference(findPreference(KEY_TETHER_SETTINGS)); } else { String[] usbRegexs = cm.getTetherableUsbRegexs(); |