diff --git a/lib/configuration_service.dart b/lib/configuration_service.dart index a3c34ea..f69eee0 100644 --- a/lib/configuration_service.dart +++ b/lib/configuration_service.dart @@ -52,12 +52,9 @@ class ConfigurationService { switch (value) { case 'false': await Preferences.instance.setBool(key, false); - break; case 'true': await Preferences.instance.setBool(key, true); - break; } } } } - diff --git a/lib/geolocation_service.dart b/lib/geolocation_service.dart index af9624e..5f26518 100644 --- a/lib/geolocation_service.dart +++ b/lib/geolocation_service.dart @@ -122,15 +122,11 @@ void headlessTask(bg.HeadlessEvent headlessEvent) async { switch (headlessEvent.name) { case bg.Event.ENABLEDCHANGE: await GeolocationService.onEnabledChange(headlessEvent.event); - break; case bg.Event.MOTIONCHANGE: await GeolocationService.onMotionChange(headlessEvent.event); - break; case bg.Event.HEARTBEAT: await GeolocationService.onHeartbeat(headlessEvent.event); - break; case bg.Event.LOCATION: await GeolocationService.onLocation(headlessEvent.event); - break; } }