daxcurson / ampflower

Music player for the Ampache server
GNU General Public License v3.0
3 stars 0 forks source link

Mini-player view goes to first item in the playlist, but goes to correct item when hitting play #3

Closed daxcurson closed 3 years ago

daxcurson commented 3 years ago

Issue discovered after the first field test: the mini-player view (at the top of the sliding window) shows the data of the first item on the list. Whe hitting play, as the screen receives the MediaItem being played from the MediaPlayerService, the correct item is shown.

daxcurson commented 3 years ago

This was due to the player not maintaining its status correctly. I crreated a view model and made it read the status of the player when the activity is re-created.