summaryrefslogtreecommitdiffstats
path: root/opengl/include
diff options
context:
space:
mode:
authorBrad Larson <brad.larson@garmin.com>2009-12-29 11:47:55 -0600
committerMike Lockwood <lockwood@android.com>2009-12-30 10:22:35 -0500
commit8eb3ea659761edc2cd5db3acf448059f19389e5e (patch)
treef7e4a63d32ecf88806dfac9c710b43e02b80fb3c /opengl/include
parentcc632731e2b6b83c1ec096d0d6c1dfa6b33d1377 (diff)
downloadframeworks_base-8eb3ea659761edc2cd5db3acf448059f19389e5e.zip
frameworks_base-8eb3ea659761edc2cd5db3acf448059f19389e5e.tar.gz
frameworks_base-8eb3ea659761edc2cd5db3acf448059f19389e5e.tar.bz2
Use isLocationProviderEnabled to test for enabled providers
LocationManagerService was just checking if the string of (comma-separated) Location Providers contained the provider we were interested in. This works fine in normal cases, but breaks if we add a provider such as test_network. Enabling test_network causes LocationManagerService to think that the network provider is also enabled. The code in Settings.Secure.isLocationProviderEnabled() checks for the commas in the string as well, to make sure that a provider name which is a substring of another provider name won't cause problems. It also centralizes the code which reads the string. Signed-off-by: Brad Larson <brad.larson@garmin.com>
Diffstat (limited to 'opengl/include')
0 files changed, 0 insertions, 0 deletions