Skip to content

Fix: discard workout instead of saving when pressing back button - #10

Merged
cagnulein merged 2 commits into
mainfrom
claude/fix-workout-back-button-1OuU5
Jan 4, 2026
Merged

Fix: discard workout instead of saving when pressing back button#10
cagnulein merged 2 commits into
mainfrom
claude/fix-workout-back-button-1OuU5

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

When pressing the back button to exit, the workout is now properly
discarded instead of being automatically saved. This matches the user
expectation of canceling the activity when pressing back.

The onBack() function now checks if there's an active recording session
and calls session.discard() before exiting, similar to the existing
behavior in onSelect().

claude and others added 2 commits January 4, 2026 06:11
When pressing the back button to exit, the workout is now properly
discarded instead of being automatically saved. This matches the user
expectation of canceling the activity when pressing back.

The onBack() function now checks if there's an active recording session
and calls session.discard() before exiting, similar to the existing
behavior in onSelect().
@cagnulein
cagnulein merged commit da4a2e6 into main Jan 4, 2026
1 check failed
@cagnulein
cagnulein deleted the claude/fix-workout-back-button-1OuU5 branch January 4, 2026 10:53
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.

2 participants