Skip to content

Commit

Permalink
fix: Fix starting background locator
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 7, 2023
1 parent f01f5b2 commit 90e6cd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/screens/LocationsOverviewScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class _LocationsOverviewScreenState extends State<LocationsOverviewScreen>
final settings = context.read<SettingsService>();
final taskService = context.read<TaskService>();

if (!(await taskService.hasRunningTasks()) ||
if (!(await taskService.hasRunningTasks()) &&
!(await taskService.hasScheduledTasks())) {
// Nothing needs to be updated
return;
Expand Down
2 changes: 0 additions & 2 deletions lib/widgets/LocusFlutterMap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Widget> children;
final List<Widget> nonRotatedChildren;
Expand Down

0 comments on commit 90e6cd8

Please sign in to comment.