Remove some usages of deprecated location APIs

Bug: 13302202
Change-Id: I916568d2b310eaf9a8b30da9a9980344aaf76c21
This commit is contained in:
Tom O'Neill
2014-03-04 10:59:29 -08:00
parent 72af648a1e
commit dad115e2db
2 changed files with 4 additions and 4 deletions

View File

@@ -84,8 +84,8 @@ public class RestrictionUtils {
userRestrictions.putBoolean(entry.getKey(), !entry.getSelectedState());
if (entry.getKey().equals(UserManager.DISALLOW_SHARE_LOCATION)
&& !entry.getSelectedState()) {
Secure.putStringForUser(context.getContentResolver(),
Secure.LOCATION_PROVIDERS_ALLOWED, "", user.getIdentifier());
Secure.putIntForUser(context.getContentResolver(),
Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF, user.getIdentifier());
}
}
um.setUserRestrictions(userRestrictions, user);