Skip to content
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

Don't clear images to avoid Glide not loading images #6543

Merged
merged 5 commits into from
Apr 27, 2022
Merged

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-image Image control 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
4 participants