You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distinguish resource set from request complete in Glide's RequestCoordinators
A request might have it's thumbnail complete, but not it's full. It's
not complete, but it has a resource set. If it has a resource set, and a
parent's request fails, we shouldn't replace the thumbnail with the
error placeholder.
Complicating matters is that we have another way in which we want to
know if a resource is set. SingleRequest wants to know if its the first
request in the set so it can tell its RequestListener. That requires
walking up the request coordinator tree and then back down.
To solve the first issue, we check the requests explicitly and walk down
the tree to see if any has set a resource, regardless of its state.
To solve the second issue, we introduce a getRoot() method on
RequestCoordinator that can be used by SingleRequest to walk down the
entire tree.
PiperOrigin-RevId: 272448635
0 commit comments