Add user messages

This commit is contained in:
estevez-dev
2019-08-31 23:55:32 +03:00
parent cece4d1e16
commit 1ecb839042
7 changed files with 143 additions and 3 deletions

View File

@ -78,13 +78,13 @@ class LocationManager {
}
LocationManager._internal() {
_startLocationService();
startLocationService();
}
final int defaultUpdateIntervalMinutes = 15;
final int alarmId = 34901199;
void _startLocationService() async {
void startLocationService() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
await prefs.reload();
bool enabled = prefs.getBool("location-enabled") ?? false;