SimpleMobileTools / Simple-Music-Player

A clean music player with a customizable widget, stylish interface and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
1.26k stars 410 forks source link

Avoid triggering `onTrackEnded()` unnecessarily #564

Closed naveensingh closed 11 months ago

naveensingh commented 11 months ago

Closes https://github.com/SimpleMobileTools/Simple-Music-Player/issues/560

Why it happened: Calling pause on a paused media player triggers onCompletion() which in turn triggers MusicService's callback to set up the next track.