androidx / androidx/media

Android 13 Artwork overlapping after migrating to Media3

Open
#939 5 comments 0 reactions 1 assignee View on GitHub

@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.
Screenshot 2024-01-02 at 10 53 12

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.