Merge "Store location changer into Settings.Secure"

This commit is contained in:
TreeHugger Robot
2018-01-25 17:59:24 +00:00
committed by Android (Google) Code Review
2 changed files with 12 additions and 4 deletions

View File

@@ -123,7 +123,8 @@ public class LocationEnabler implements LifecycleObserver, OnResume, OnPause {
}
return;
}
updateLocationEnabled(mContext, enabled, UserHandle.myUserId());
updateLocationEnabled(mContext, enabled, UserHandle.myUserId(),
Settings.Secure.LOCATION_CHANGER_SYSTEM_SETTINGS);
refreshLocationMode();
}
@@ -142,7 +143,8 @@ public class LocationEnabler implements LifecycleObserver, OnResume, OnPause {
return;
}
updateLocationMode(mContext, currentMode, mode, ActivityManager.getCurrentUser());
updateLocationMode(mContext, currentMode, mode, ActivityManager.getCurrentUser(),
Settings.Secure.LOCATION_CHANGER_SYSTEM_SETTINGS);
refreshLocationMode();
}