Skip to content

Impl/better animations on song info sheet#2302

Merged
theovilardo merged 3 commits into
masterfrom
impl/better-animations-on-song-info-sheet
Jun 8, 2026
Merged

Impl/better animations on song info sheet#2302
theovilardo merged 3 commits into
masterfrom
impl/better-animations-on-song-info-sheet

Conversation

@theovilardo

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c516d40e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1254 to +1258
coroutineScope.launch {
kotlinx.coroutines.delay(180)
playVisualPressed = false
clickPending = false
onPlaySong()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not delay actions in a composition-scoped coroutine

When a user taps this action and then dismisses the sheet or switches pages during the 180 ms animation window, this rememberCoroutineScope() job is cancelled as the row leaves composition, so onPlaySong() never runs even though the tap was accepted. The same delayed-dispatch pattern is used for the other sheet actions, so trigger the side effect before the cancellable delay or launch it from a scope that survives the row animation.

Useful? React with 👍 / 👎.

@theovilardo theovilardo merged commit dbc038d into master Jun 8, 2026
4 of 5 checks passed
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.

1 participant