Location manager optimizations
This commit is contained in:
@ -35,12 +35,7 @@ class StartupUserMessagesManager {
|
||||
positiveText: "Enable now",
|
||||
negativeText: "Cancel",
|
||||
onPositive: () {
|
||||
SharedPreferences.getInstance().then((prefs) {
|
||||
prefs.setBool("location-enabled", true);
|
||||
prefs.setBool(_locationTrackingMessageKey, true);
|
||||
LocationManager().startLocationService();
|
||||
LocationManager().updateDeviceLocation();
|
||||
});
|
||||
LocationManager().setSettings(true, 15);
|
||||
},
|
||||
onNegative: () {
|
||||
SharedPreferences.getInstance().then((prefs) {
|
||||
|
Reference in New Issue
Block a user