bumptech / bumptech/glide

glide display previous images

Open
#5,007 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

already clear old data but still display previous category images then load new images

`
override fun onViewRecycled(holder: ParentHolder) {
super.onViewRecycled(holder)
if(holder is ItemHolder) {
Glide.with(holder.binding.imageViewThumb).clear(holder.binding.imageViewThumb)
holder.binding.imageViewThumb.setImageDrawable(null)
}
}
`

Contributor guide

Open the contributing guide

Research direction

Start from the RecyclerView holder lifecycle shown in onViewRecycled, especially Glide.with(holder.binding.imageViewThumb).clear and setImageDrawable(null). Reproduce switching categories while images are loading, then trace how new requests are started for imageViewThumb. Done means previous-category images never remain visible while the new images load.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.