glide display previous images
- 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
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