Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ open class CoilImageView
}
networkWaitingJob?.cancel()
networkWaitingJob = null
// a recycled view may still be waiting on the previous holder's request
previous?.dispose()
currentImageData = request.data
return coil.enqueue(request).also { currentRequest = it }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class PluginManageAdapter(
binding.imageViewIcon.errorDrawable = fb
binding.imageViewIcon.fallbackDrawable = fb
if (avatar.isNullOrBlank()) {
binding.imageViewIcon.disposeImage()
binding.imageViewIcon.setImageResource(R.drawable.ic_services)
} else {
applyIconShape(binding.imageViewIcon, context)
Expand Down Expand Up @@ -122,6 +123,7 @@ class PluginManageAdapter(
binding.imageViewIcon.fallbackDrawable = fb
val icon = if (item.isLocal) item.installed.firstOrNull()?.iconUrl else githubAvatarUrl(item.repositoryLabel)
if (icon.isNullOrBlank()) {
binding.imageViewIcon.disposeImage()
binding.imageViewIcon.setImageDrawable(fb)
} else {
binding.imageViewIcon.setImageAsync(icon)
Expand Down
Loading