Multiple exoplayers in list view not rendering correctly on android 13
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### ExoPlayer Version
2.18.1
### Devices that reproduce the issue
Any device running android 13
Tested on Samsung Galaxy S20 and Google Pixel 6 pro
### Devices that do not reproduce the issue
Haven't found a device that doesn't reproduce this issue
### Reproducible in the demo app?
Yes
### Reproduction steps
Hi, I'm farely new to exoPlayer and I've encountered a bug while trying to run my code on android 13.
When I scroll my list, on the current visible video, the upper one is drawn on top (just the first frame). I can't figure out the reason behind that
I encountered this bug in my app and tried it also in the demo app by recreating a simpler version of my own code.
I've included my source code so you could recreate the issue, the code is my version of the ./demos/main folder all you need to do is put the code in your demo app and run the "demo" configuration.
[main.zip](https://github.com/google/ExoPlayer/files/10075768/main.zip)
After that scroll to the bottom of the list and slowly scroll up untill just before the upper video is about to render on screen. (PlayerAdapter.onViewAttachedToWindow is called and the error is visible then)
### Expected result
Players seamlessly play one after another on scroll.
### Actual result
On scroll one player item is drawn over another as seen in the attached video
https://user-images.githubusercontent.com/39884909/203557086-2670fe73-28ed-44f3-a00e-d764aa25ef45.mp4
### Media
https://cdn.jwplayer.com/manifests/6gCvdLll.m3u8
### Bug Report
- [X] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.
Contributor guide
Assessment
This issue has not been assessed yet.