Recyclerview Lazy Loading
I'm doing lazy loading on a RecyclerView adapter. First I fetch the image metadata (if it has any) and then let Picasso download the actual image. public class PostHolder extends R
Solution 1:
It's fixed now, though I'm not exactly sure why. I believe it's
Picasso
.with(getContext())
.cancelRequest(this);
inside unsetImage() because of the double request needed to load it.
What I think happens:
Picassois still loading the previous image.- A call for the current image metadata is dispatched.
Picassoloads the preVious image. SincePicassodoesn't know about the metadata, it's not automatically canceled.- The metadata get's loaded, and
Picassostarts loading the current image.
Post a Comment for "Recyclerview Lazy Loading"