-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Images don't load correctly on Android #6464
Comments
Repro on Android emulator. Here is a sample project: |
Still running into Android images loading via URL databinding in RC2 https://github.com/dotnet-presentations/dotnet-maui-workshop/ in the final folder |
Yeah. I managed to locate where the issue really starts happening, and I think it may be a bug in Glide. It is a small fix so I am working on a PR now. But still is both surprising as it is all code following the docs and I can't believe we are the only people in the world cleaning up our images. It appears that when we start loading a new image and ask glide to clean up the old one, glide breaks itself and never fires the image load complete events and so we can't actually know when to set the image. And if we just never clean up and let the framework auto-cleanup when setting new images it works. Just need to verify that it is actually doing a cleanup... |
* Don't clear images to avoid #6464 * rename * skip for now
So this definitely works better but the image still flickers when changing the image Source. It did not do this in Preview 14 so there is still something amiss. |
Flickers? Like it disappears for a millisecond between images? Could you open an issue on that with a repro? Does it flicker when loading from a local source? Like a file in the cache? The reason I ask is that I don't recall any flicker, but maybe I got something different in my sample app. I was just setting |
Description
Android images weren't loading at all. Bug #6394 sort of fixed the problem but not really. Now, when I set the Image source to a UriImageSource, every other image is displayed and the alternates are blank, i.e., no image is displayed.
I'm using the main workload to test this as RC1 doesn't work at all and the bug fix for that is has not been released yet.
Steps to Reproduce
I can add actual code to this post but it's tied to specific images on a local server and I'm not sure it would help all that much.
Version with bug
Unknown/Other (please specify)
Last version that worked well
Preview 14
Affected platforms
Android
Affected platform versions
Seeing it on Android 11
Did you find any workaround?
I have been unable to find a workaround. I was hoping that setting the source twice might fool it into working, albeit with possible annoying flickering, but that didn't work.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: