CappielloAntonio / tempo

An open source and lightweight music client for Subsonic, designed and built natively for Android.
GNU General Public License v3.0
867 stars 39 forks source link

[BUG] - Loop state occasionally not remembered on long inactivity #140

Open Neshura87 opened 5 months ago

Neshura87 commented 5 months ago

Describe the bug

If I start a playlist and set the playback mode to "Loop All" usually I can close the app and come back later without losing the setting. However if I leave the app inactive for a long time occasionally I open it again and while the queue is still preserved the "Loop All" option is forgotten and the playback mode defaults to "No Looping". I could reproduce the effect by clearing the App cache, I suspect the setting is never written to permanent storage (like the queue seemingly is) and therefore lost when Android clears memory for other applications.

Expected behavior

The playback mode should always be remembered, even after extended app inactivity

To Reproduce

  1. Start a playlist
  2. Set the playback to "Loop All" or "Loop Single"
  3. Clear App Cache
  4. Open the App Again
  5. Play Queue is loaded correctly
  6. Playback Mode Defaults to "No Looping"

Environment

Logs or Screenshots

Additional context