Skip to content

refactor: replace blocking I/O with cached preference in MusicService#1184

Merged
theovilardo merged 1 commit intomasterfrom
fix/keep-playing-anr
Feb 21, 2026
Merged

refactor: replace blocking I/O with cached preference in MusicService#1184
theovilardo merged 1 commit intomasterfrom
fix/keep-playing-anr

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

  • Replace runBlocking call to userPreferencesRepository with the existing keepPlayingInBackground state variable in onTaskRemoved.
  • This avoids potential UI thread blocking when the service task is removed.

- Replace `runBlocking` call to `userPreferencesRepository` with the existing `keepPlayingInBackground` state variable in `onTaskRemoved`.
- This avoids potential UI thread blocking when the service task is removed.
@theovilardo theovilardo merged commit 3a77ab3 into master Feb 21, 2026
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