jenius-apps / ambie

An app that uses white noise, nature sounds, and focus features to boost your productivity.
https://ambieapp.com
MIT License
1.89k stars 143 forks source link

The sound player state remains true when no sounds are playing. #381

Closed Pdawg-bytes closed 1 year ago

Pdawg-bytes commented 1 year ago

Current issue:

When the user removes all sounds from the player, the player MediaPlaybackState remains Playing, even after all sounds are removed. It is only paused when the user deliberately presses the pause button.

Pdawg-bytes commented 1 year ago

@dpaulino for some reason, I can't seem to repro anymore. Today I was testing in both dev and prod and the bug wasn't happening. The expected behavior was executed and the player was paused when all sounds were cleared.

dpaulino commented 1 year ago

Fixed with this https://github.com/jenius-apps/ambie/commit/19ef0536fc7406803f51bb418f1427b72da1b29d