From 90e6cd86e05834854b3ffc4a00303b4daea9d3b7 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Thu, 7 Sep 2023 21:30:31 +0200 Subject: [PATCH] fix: Fix starting background locator --- lib/screens/LocationsOverviewScreen.dart | 2 +- lib/widgets/LocusFlutterMap.dart | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/screens/LocationsOverviewScreen.dart b/lib/screens/LocationsOverviewScreen.dart index 2ff72782..bee4eeed 100644 --- a/lib/screens/LocationsOverviewScreen.dart +++ b/lib/screens/LocationsOverviewScreen.dart @@ -341,7 +341,7 @@ class _LocationsOverviewScreenState extends State final settings = context.read(); final taskService = context.read(); - if (!(await taskService.hasRunningTasks()) || + if (!(await taskService.hasRunningTasks()) && !(await taskService.hasScheduledTasks())) { // Nothing needs to be updated return; diff --git a/lib/widgets/LocusFlutterMap.dart b/lib/widgets/LocusFlutterMap.dart index 4b3efa97..909717c1 100644 --- a/lib/widgets/LocusFlutterMap.dart +++ b/lib/widgets/LocusFlutterMap.dart @@ -4,8 +4,6 @@ import 'package:locus/constants/values.dart'; import 'package:locus/utils/location/get-fallback-location.dart'; import 'package:locus/utils/theme.dart'; -import "package:latlong2/latlong.dart"; - class LocusFlutterMap extends StatelessWidget { final List children; final List nonRotatedChildren;