Send location on app resume

This commit is contained in:
estevez-dev
2019-08-31 22:37:55 +03:00
parent f9c37f5084
commit 623634cb6e
3 changed files with 54 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class _ConfigPanelWidgetState extends State<ConfigPanelWidget> {
await prefs.reload();
SharedPreferences.getInstance().then((prefs) {
setState(() {
locationInterval = prefs.getInt("location-interval") ?? 10;
locationInterval = prefs.getInt("location-interval") ?? LocationManager().defaultUpdateIntervalMinutes;
});
});
}