Skip to content

Commit

Permalink
Fix status also falling out of sync if the app is put to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Sep 10, 2022
1 parent ce3bd21 commit b601738
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ protected async void UpdateInformation(object sender, EventArgs e)
if (status.SongId != CurrentTrack?.File?.Id)
{
OnTrackChange(this, new SongChangedEventArgs { NewSongId = status.SongId });
OnStateChange(this, null);
await UpdateUpNextAsync(_mpdService.CurrentStatus);
}

if (!HasNextTrack)
Expand Down

0 comments on commit b601738

Please sign in to comment.