New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image not loading with fragment integration #181
Comments
Some questions: What device are you finding this on? What url/image are attempting to load? |
We've tested this on 2 old devices, Xiaomi Redmi 3 and ZTE Nubia Z11 Max. |
Just ran out tests and sample app on API 21-24 emulators and everything is working as expected. I don't have those devices so there's not much else I can do to help unfortunately. Is anything coming up in logcat? |
No, we are not getting errors in logcat. The image state is ImageLoadState.Success, but it isn't displayed on the screen. We have also found that the images are displayed if you add a ScrollableRow with CoilImages and scroll or click the row. I believe that this has something to do with the Focus or the Recomposer, not directly with the Coil library. |
Are you using Does the following work? CoilImage(...) { imageState ->
when (imageState) {
is ImageLoadState.Success -> {
Image(painter = imageState.painter)
}
else -> Unit
}
} |
We do not use fadeIn or any other animation on the app.
It does not work. The only way to make this work is if remove the |
Sounds like a bug to me then on I'll close this for now, since I don't think there's anything actionable for this library. |
Images are not getting loaded on Android 5.1.1 when you integrate Compose and fragments (inflate the XML layout using AndroidViewBinding). You can reproduce the issue on the Jetsnack sample app by adding a CoilImage on the ConversationContent (or in any other composable). CoilImage works fine for Android > 5.1
The text was updated successfully, but these errors were encountered: