Remove deprecated Settings APIs.

Bug: 128348646
Test: manual
Change-Id: I40dbfc78ee983ffacc56a68d2c5ba2aefb16357f
This commit is contained in:
Soonil Nagarkar
2019-03-11 15:39:00 -07:00
parent e756f460d0
commit 6dac9d1bf5
5 changed files with 17 additions and 81 deletions

View File

@@ -1360,10 +1360,10 @@ public class LocationManager {
@NonNull String provider, boolean enabled, @NonNull UserHandle userHandle) {
checkProvider(provider);
return Settings.Secure.setLocationProviderEnabledForUser(
return Settings.Secure.putStringForUser(
mContext.getContentResolver(),
provider,
enabled,
Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
(enabled ? "+" : "-") + provider,
userHandle.getIdentifier());
}