bumptech / bumptech/glide

In a custom target, it it possible to check if onResourceReady() was called for the thumbnail BitmapThumbnailImageViewTarget s full image?

Open
#2,165 2 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.