Skip to content

Fix/transition sound not playing#58

Merged
PranavPurwar merged 2 commits intoaload0:mainfrom
alv-cor:fix/transition-sound-not-playing
Mar 8, 2026
Merged

Fix/transition sound not playing#58
PranavPurwar merged 2 commits intoaload0:mainfrom
alv-cor:fix/transition-sound-not-playing

Conversation

@alv-cor
Copy link
Contributor

@alv-cor alv-cor commented Mar 8, 2026

Given that the option 'Play sound on phase transitions' is enabled, the sound is not playing when transitioning from a break to focus. This PR aims to fix this behaviour.

alv-cor added 2 commits March 8, 2026 21:24
Assign AudioAttributes to the Ringtone with USAGE_ALARM and CONTENT_TYPE_SONIFICATION before calling play(). This ensures correct routing/behavior (volume, focus, and stream selection) on modern Android versions and avoids unexpected muted/incorrect stream playback. Kept nullable-safe access to ringtone.
@PranavPurwar PranavPurwar merged commit 1fc6d16 into aload0:main Mar 8, 2026
1 check 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.

2 participants