Skip to content

Commit

Permalink
#14 Try to make sure that the application is not killed by OS if the …
Browse files Browse the repository at this point in the history
…stopwatch is running
  • Loading branch information
Denis Zhdanov committed Dec 29, 2024
1 parent 45000b2 commit 62d539c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/measurement/widget/stop_watch_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class StopWatchState extends ConsumerState<StopWatchWidget> {
if (_running) {
_lastMeasurementTime = clockProvider.now();
_lastStoreTime = _lastMeasurementTime;
_prefs.setString(_preferencesKey, "${_measuredDuration.inMilliseconds}:y");
} else {
_prefs.setString(_preferencesKey, "${_measuredDuration.inMilliseconds}:n");
}
Expand Down

0 comments on commit 62d539c

Please sign in to comment.