Skip to content

Conversation

@ychescale9
Copy link
Member

Playback position saving on talking kotlin episode screen has been broken since #471 due to the VM being properly scoped:

  • when onDispose is called the VM's viewModelScope has already been cancelled
  • the presenter scope can no longer launch coroutines to emit the event
  • CollectEffect lambda in the presenter is never invoked with the event for saving playback position

Fixed by keeping tracking of the latest play back position in a Compose state, and dispatching the event to save the latest playback position when the current screen is removed from the backstack.

@ychescale9 ychescale9 merged commit 03a6537 into main Jan 6, 2026
7 checks passed
@ychescale9 ychescale9 deleted the yc/fix-playback-position-saving branch January 6, 2026 15:16
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