Location manager optimizations

This commit is contained in:
estevez-dev
2019-09-01 23:12:43 +03:00
parent 27e6198d83
commit 389d28a1e1
3 changed files with 51 additions and 46 deletions

View File

@ -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) {