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.28k stars 407 forks source link

Sleep Timer (and possibly all FINISH intents) leads to "non-graceful exits" (state is not saved) #391

Closed Sayrus closed 1 year ago

Sayrus commented 2 years ago

Description

When using Sleep Timer, the application exits without saving progress, current track and possibly more state related to what's currently playing. As far as I could tell, this seems to be related to the stopSelf call done after a FINISH intent.

This also lead to inconsistent application UI:

Steps to reproduce:

From there:

I'm not sure Sleep Timer is the only way to trigger, I feel like I've triggered it during the day (aggressive memory management?) but I don't have concrete evidence or a reproductible process yet.

Version: 5.10.1 (reproduced on earlier versions too)