Android 13 Artwork overlapping after migrating to Media3
Open
@marcbaechinger is already working on this.
Since Jan 3, 2024.
bug: in platform
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
When we migrated to media3 we started seeing an issue with Android 13 notification player. The artworks are overlapping each other.
I've done a lot of research and found this SO question without an answer and also came across this google issue. It seems to be fixed in Android 14, which I can confirm. However, if it's really just an OS issue, why it wasn't happening on Android 13 before migrating to media3?
From my testing it seems to happen only when the top image (most recently played media) have a transparent background. With that in mind possible solutions are:
- change the images on backend side to not have transparent background. Unfortunately we can't do this at the moment. Perhaps worth mentioning here is that we receive a link to PNG from the backend.
- change the bitmap on client side before passing to the notification. I couldn't figure out how this can be done, but it should be possible considering this method exists. I also tried to find a way to use Glide for loading notification artworks, but couldn't figure out that either.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.