OSDN Git Service

AI 144415: am: CL 144372 Cleanup Settings support for enabling and disabling location...
authorMike Lockwood <>
Fri, 3 Apr 2009 06:41:32 +0000 (23:41 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Fri, 3 Apr 2009 06:41:32 +0000 (23:41 -0700)
commitf2905dfc5b11db7aef9fcc7be1af39d1fc9e0c24
tree2905a1716c7697b733a64043447bf9311e1b1de5
parentc4c8b1be829abd70acf7da1449bc2b7f312229f9
AI 144415: am: CL 144372 Cleanup Settings support for enabling and disabling location providers:
  LocationManagerService now listens for changes to settings,
  making LocationManager.updateProviders() unnecessary.
  Removed LocationManager.updateProviders()
  Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way
  of enabling or disabling a single location provider.
  This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly.
  BUG=1729031
  Original author: lockwood

Automated import of CL 144415