-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Crossfade animation animates on already loaded image #228
Comments
2.1 There's a 2.2 I think not adding a 2.3 See |
After some more investigation it turned out that since I fetched the content twice (once from cache and once from the web) and therefore called notifyDataSetChanged() twice, I got this double animation the first time it loaded. So I think I can live with this even though Picasso worked fine in this scenario :-) |
In theory the animation won't run again if the image you're loading has the same cache key (same url, identical Glide options) as an image present in the cache. If you're loading once from cache and once from the web, are your cache keys/urls/file paths different for the cache fetch and the web fetch? This does sound like something we'd want to fix, so feel free to re-open if you have time to help us investigate a bit more. |
I read here #132 that it states:
"the 3.x version of Glide simply relies on existing images to be in cache, but otherwise treats every new load equally, even if the new load is for an image that is already being displayed."
I migrated from Picasso to Glide and have the issue now that my news images display fine when viewing them, but then seem to be fetched again and a crossfade animation occurs between the old cached image and the new image which are equal.
Since it is news images, the images won't change so we don't want to fetch the images if they exist on disk already.
Here is my code:
The text was updated successfully, but these errors were encountered: