In a custom target, it it possible to check if onResourceReady() was called for the thumbnail BitmapThumbnailImageViewTarget s full image?
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
I'm on Glide 4, and I'm using a custom class that extends Target. I notice that onResourceReady fires twice, once when the thumbnail I set is ready, and another then the full image has been loaded.
Resource ready only supplies a resource and a transition though, so I'm not sure how I could check, or if it's possible.
Contributor guide
Research direction
Start by reading Glide 4's Target and thumbnail request behavior, focusing on custom Target implementations and the two onResourceReady callbacks described here. Determine whether the callback exposes which request produced the resource; done means documenting or defining a reliable way to distinguish the thumbnail from the full image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100