thibseisel / android-odeon

A simple but efficient music player on Android.
Apache License 2.0
69 stars 9 forks source link

Inactive media session is not restarted by media button events #6

Open thibseisel opened 5 years ago

thibseisel commented 5 years ago

In the official documentation it is stated that when receiving an media button event (for example, a click on an headset button) while there is no active media session, the system should look for the last active media session and restart it.

That doesn't work with Odeon. Use-case: restart playback of the last played queue by clicking the headsets button while the application is not open.