Load bitmaps for MediaMetadataCompat and handle the metadata updates.

* Add `Listener` in `MediaSession` with method `onNotificationRefreshRequired(MediaSession)`.
* Add `MediaSessionService` as the listener of the `MediaSession` when `MediaSession` is added to `MediaSessionService`
* Load bitmap when update metadata in `MediaSessionLegacyStub` and call `onNotificationRefreshRequired` when bitmap asynchronously arrives.

PiperOrigin-RevId: 485376145
(cherry picked from commit 624238c6b6e621deed585cb19b63f117ae3f7e76)
This commit is contained in:
tianyifeng 2022-11-01 18:43:26 +00:00 committed by microkatz
parent 69112df555
commit 61b1cfc05d

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB