Store location changer into Settings.Secure
Bug: 68779883 Test: Manual Change-Id: I6ec69d6c9f418a169b8bee71969716e8a44a14a5
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user