Skip to content

fix(androidApp, composeApp): Disconnect sendspin client on close when not playing audio.#318

Merged
formatBCE merged 1 commit intomusic-assistant:devfrom
Blu3sClues:dev
May 2, 2026
Merged

fix(androidApp, composeApp): Disconnect sendspin client on close when not playing audio.#318
formatBCE merged 1 commit intomusic-assistant:devfrom
Blu3sClues:dev

Conversation

@Blu3sClues
Copy link
Copy Markdown
Contributor

Created a function for when the app is closed, which checks for if music is playing and disconnects the sendspin client if nothing is playing.

When an android user removes the app from their recent apps, the function is triggered and checks for active playback. If no playback is active, the sendspin client is disconnected and the application stops itself and removes from the foreground.

If playback is active, it continues playing in the background to prevent accidental closures.

Fixes #302

…nt on app close when not playing audio.

Fixes #302
@teancom teancom added the android Android platform label May 2, 2026
Copy link
Copy Markdown
Collaborator

@formatBCE formatBCE left a comment

Choose a reason for hiding this comment

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

Great! Thank you!

@formatBCE formatBCE merged commit 405db37 into music-assistant:dev May 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pausing playback causes client to remain in background indefinitely

3 participants