uamp icon indicating copy to clipboard operation
uamp copied to clipboard

Media resumption not working after UAMP is swiped from recents

Open dturner opened this issue 5 years ago • 2 comments

Steps to repro:

  • On Android 11, load UAMP and play a song. Verify that media controls are shown (swipe down from top of screen).
  • Swipe UAMP away from the recent list (kill the app). Verify that the media controls are shown with just a play button.
  • Tap the play button in the media controls

Expected result:

  • Previous song starts playing

Actual result:

  • Previous song does not start playing. UAMP does not load.

dturner avatar Sep 17 '20 20:09 dturner

Here's what I see in the logs when this issue occurs. These are system messages, rather than from UAMP:

2020-09-17 21:52:31.425 19521-19521/? D/ResumeMediaBrowser: Connected for restart true
2020-09-17 21:52:31.425 19521-19521/? D/MediaResumeListener: Connected for restart ComponentInfo{com.example.android.uamp.next/com.example.android.uamp.media.MusicService}

But nothing from UAMP. I added some logging to onGetRoot but it appears the method is never called.

This appears to be an intermittent error though because after reinstalling the app I cannot reproduce it.

dturner avatar Sep 17 '20 21:09 dturner

Maybe the media resumption service crashed or there was a problem with the media browser client in connecting which didn't get as far as the MusicService.

dturner avatar Sep 17 '20 21:09 dturner