KEMBAR78
Don't clear images to avoid Glide not loading images by mattleibow · Pull Request #6543 · dotnet/maui · GitHub
Skip to content

Conversation

@mattleibow
Copy link
Member

@mattleibow mattleibow commented Apr 27, 2022

Description of Change

Calling requestManager.clear(target) before loading a new image somehow causes Glide to not actually load images.

This PR removes the clear calls and then relies on the fact that loading a new image will clear out the old one and release it:
https://bumptech.github.io/glide/doc/targets.html#cancellation-and-re-use

I did the fix in java code as that is where I believe the issue is. Rather have all the code set up for disposal in the managed world and all the events fire as expected.

Issues Fixed

Fixes #6464

@mattleibow mattleibow requested a review from Redth April 27, 2022 14:24
@mattleibow mattleibow self-assigned this Apr 27, 2022
@mattleibow mattleibow added t/bug Something isn't working platform/android area-image Image loading, sources, caching labels Apr 27, 2022
@mattleibow mattleibow added this to the 6.0.300-rc.3 milestone Apr 27, 2022
@PureWeen PureWeen merged commit 544fb45 into main Apr 27, 2022
@PureWeen PureWeen deleted the dev/fix-images branch April 27, 2022 21:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@Eilon Eilon added area-controls-image Image control and removed area-image Image loading, sources, caching labels May 10, 2024
@samhouts samhouts added the fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-image Image control fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! platform/android t/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images don't load correctly on Android

5 participants