The alarm sound continues to play in the background even when attempting to select a new sound or exiting the dialog.
Steps to Reproduce:
Click on the FAB (Floating action button) to add a new alarm.
Click on the Choose Ringtone button.
Click on the play icon button on any of your existing tones.
Expected Behavior:
The Upload Ringtone button should verify if a ringtone is currently playing.
If no tone is playing, it should proceed to open the folders to select a new tone.
If a tone is playing, it should stop the current tone before allowing selection of a new one.
Pressing the Done button or closing the dialog should also stop any playing tone.
Actual Behavior:
Once a sound starts playing, it continues even after performing this actions
After setting the alarm
When the Done button is pressed
When the dialog is closed
When adding a new sound
Possible Solution:
Implement a check before opening the ringtone selection dialog to ensure no tones are currently playing. Additionally, ensure that pressing the "Done" button or closing the dialog stops any playing tones.
Description
The alarm sound continues to play in the background even when attempting to select a new sound or exiting the dialog.
Steps to Reproduce:
Click on the
FAB
(Floating action button) to add a new alarm. Click on theChoose Ringtone
button. Click on theplay icon button
on any of your existing tones.Expected Behavior: The
Upload Ringtone
button should verify if a ringtone is currently playing. If no tone is playing, it should proceed to open the folders to select a new tone. If a tone is playing, it should stop the current tone before allowing selection of a new one. Pressing theDone
button or closing the dialog should also stop any playing tone.Actual Behavior: Once a sound starts playing, it continues even after performing this actions
Done
button is pressedPossible Solution: Implement a check before opening the ringtone selection dialog to ensure no tones are currently playing. Additionally, ensure that pressing the "Done" button or closing the dialog stops any playing tones.
Screenshots