playback: sync mediasession and notif

Make notification updates entirely reliant on the MediaSession.

Android 11 and onwards automatically populate the notification with the
MediaSession state. This apparently conflicts with updating the
notification in some cases, resulting in the incorrect song being
shown. Fix this by not populating the notification from Android 11
onward and only posting it when the MediaSession state was set.

Resolves #179.
This commit is contained in:
OxygenCobalt
2022-07-02 14:04:21 -06:00
parent 3663396b97
commit 49a964705b
6 changed files with 99 additions and 120 deletions
+1
View File
@@ -26,6 +26,7 @@ finished saving
- Fixed issue where the search filter menu would not display the correct mode
- Fixed crash when search filter mode was changed
- Fixed shuffle button appearing below playback bar on Android 10 and lower
- Fixed incorrect song being shown in the notification in some cases [#179]
#### What's Changed
- Reworked typography and iconography to be more aligned with material design guidelines