diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-08-31 11:17:47 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-08-31 16:45:39 -0700 |
commit | 8af88fb8387259e51615709b2d1ea0260f7057fd (patch) | |
tree | e5ae0ac9f9696e68d38d02fdf205603fd858a150 /src/com/android/settings/LocationSettings.java | |
parent | ca6d987a87698cda7ca216adb8e827b30111f984 (diff) | |
download | packages_apps_settings-8af88fb8387259e51615709b2d1ea0260f7057fd.zip packages_apps_settings-8af88fb8387259e51615709b2d1ea0260f7057fd.tar.gz packages_apps_settings-8af88fb8387259e51615709b2d1ea0260f7057fd.tar.bz2 |
Use the new isNetworkSupported api for wifi-only
Didn't have an API for this before so people used a hacked system property (ro.carrier)
to determine if the device supported mobile data. Added new API and switching callsites.
bug:5087537
Change-Id: Ibd799559be102a9e2fd552d1a23d1afbcf8f4614
Diffstat (limited to 'src/com/android/settings/LocationSettings.java')
-rw-r--r-- | src/com/android/settings/LocationSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/LocationSettings.java b/src/com/android/settings/LocationSettings.java index 0824aab..ef438e6 100644 --- a/src/com/android/settings/LocationSettings.java +++ b/src/com/android/settings/LocationSettings.java @@ -101,7 +101,7 @@ public class LocationSettings extends SettingsPreferenceFragment } // Change the summary for wifi-only devices - if (Utils.isWifiOnly()) { + if (Utils.isWifiOnly(getActivity())) { mNetwork.setSummaryOn(R.string.location_neighborhood_level_wifi); } |