Skip to content

Fix pause/resume state handling in tracking view model#124

Merged
Jozys merged 1 commit intodevelopmentfrom
fix/tracking-timer
Apr 13, 2025
Merged

Fix pause/resume state handling in tracking view model#124
Jozys merged 1 commit intodevelopmentfrom
fix/tracking-timer

Conversation

@Jozys
Copy link
Copy Markdown
Collaborator

@Jozys Jozys commented Apr 13, 2025

🚀 Pull Request

Brief Description

This pull request resolves an issue with the tracking timer to be start twice. This was caused by a bug in the activity_tracking library and a wrong state update.

Linked Issues

GitHub Copilot Text

This pull request includes a small but important change to the TrackingViewModel class in the lib/presentation/tracking/view_model/tracking_view_model.dart file. The change corrects the logic for handling pause and resume events by swapping the values of newIsPaused.

- Update activity tracking to include bug fixes
@Jozys Jozys requested review from ScreepCode and Copilot April 13, 2025 12:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • lib/presentation/tracking/view_model/tracking_view_model.dart: Language not supported

@Jozys Jozys self-assigned this Apr 13, 2025
@Jozys Jozys merged commit 828937b into development Apr 13, 2025
2 checks passed
@Jozys Jozys deleted the fix/tracking-timer branch April 13, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Tracking timer counting is to high

3 participants