uamp
uamp copied to clipboard
Media resumption not working after UAMP is swiped from recents
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.
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.
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.