Remove unnecessary breaks
This commit is contained in:
parent
35f7029e12
commit
774ccb1ddc
2 changed files with 0 additions and 7 deletions
|
|
@ -52,12 +52,9 @@ class ConfigurationService {
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case 'false':
|
case 'false':
|
||||||
await Preferences.instance.setBool(key, false);
|
await Preferences.instance.setBool(key, false);
|
||||||
break;
|
|
||||||
case 'true':
|
case 'true':
|
||||||
await Preferences.instance.setBool(key, true);
|
await Preferences.instance.setBool(key, true);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,15 +122,11 @@ void headlessTask(bg.HeadlessEvent headlessEvent) async {
|
||||||
switch (headlessEvent.name) {
|
switch (headlessEvent.name) {
|
||||||
case bg.Event.ENABLEDCHANGE:
|
case bg.Event.ENABLEDCHANGE:
|
||||||
await GeolocationService.onEnabledChange(headlessEvent.event);
|
await GeolocationService.onEnabledChange(headlessEvent.event);
|
||||||
break;
|
|
||||||
case bg.Event.MOTIONCHANGE:
|
case bg.Event.MOTIONCHANGE:
|
||||||
await GeolocationService.onMotionChange(headlessEvent.event);
|
await GeolocationService.onMotionChange(headlessEvent.event);
|
||||||
break;
|
|
||||||
case bg.Event.HEARTBEAT:
|
case bg.Event.HEARTBEAT:
|
||||||
await GeolocationService.onHeartbeat(headlessEvent.event);
|
await GeolocationService.onHeartbeat(headlessEvent.event);
|
||||||
break;
|
|
||||||
case bg.Event.LOCATION:
|
case bg.Event.LOCATION:
|
||||||
await GeolocationService.onLocation(headlessEvent.event);
|
await GeolocationService.onLocation(headlessEvent.event);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue