mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 03:27:51 +02:00
Fix recycled icon in source migration list when source isn't installed
(cherry picked from commit 9b4ffd1cd5
)
This commit is contained in:
@ -48,7 +48,7 @@ class SourceHolder(view: View, override val adapter: SourceAdapter, val showButt
|
||||
// Set source name
|
||||
title.text = source.name
|
||||
|
||||
// Set circle letter image.
|
||||
// Set source icon
|
||||
itemView.post {
|
||||
val icon = source.icon()
|
||||
when {
|
||||
|
@ -41,12 +41,9 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
|
||||
// Set source name
|
||||
title.text = source.name
|
||||
|
||||
// Set circle letter image.
|
||||
// Set source icon
|
||||
itemView.post {
|
||||
val icon = source.icon()
|
||||
if (icon != null) {
|
||||
image.setImageDrawable(icon)
|
||||
}
|
||||
image.setImageDrawable(source.icon())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user