Wrong Image is being displayed on some devices in certain cases
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
**Glide Version**: 4.8.0 - 4.9.0
**Device/Android Version**: Galaxy S9 SM-G960F/DS running 9.0 or 8.0
**Issue details / Repro steps / Use case background**:
The App loads cover arts of music files that are found on the device. It does so by getting the Uri of the album art from the content. It works great on most devices. However, I noticed that on my Galaxy S9 and a user's S7, that it sometimes loads the wrong image. I debugged my code and what I found out that: when the Uri of the image is being loaded, if ImageView has a specific width or height (i.e. 75dp), the image displayed is wrong. But when the same Uri is being loaded into an ImageView that has wrap_content for width and height, the correct image is displayed. This is the case for few album art Uris, the rest show the correct image. And note that the wrong image that is being displayed is the only image I have on my SD card and it is just a picture from the camera roll (not related to any song file i.e. not an album art).
**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(mRootView.getContext())
.load(Uri.parse("content://media/external/audio/albumart/15342")))
.into(icon);
```
**Layout XML**:
```xml
```
If I change the 75dp in the above XML to "wrap_content" for both width and height, the correct image is displayed.
Please let me know if you need more information. I'll be happy to help.
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.