mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix recycled icon in source migration list when source isn't installed
This commit is contained in:
parent
ed87dd89a1
commit
9b4ffd1cd5
2 changed files with 3 additions and 6 deletions
|
@ -43,7 +43,7 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
|
||||||
// Set source name
|
// Set source name
|
||||||
title.text = source.name
|
title.text = source.name
|
||||||
|
|
||||||
// Set circle letter image.
|
// Set source icon
|
||||||
itemView.post {
|
itemView.post {
|
||||||
val icon = source.icon()
|
val icon = source.icon()
|
||||||
when {
|
when {
|
||||||
|
|
|
@ -39,12 +39,9 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
|
||||||
// Set source name
|
// Set source name
|
||||||
title.text = source.name
|
title.text = source.name
|
||||||
|
|
||||||
// Set circle letter image.
|
// Set source icon
|
||||||
itemView.post {
|
itemView.post {
|
||||||
val icon = source.icon()
|
image.setImageDrawable(source.icon())
|
||||||
if (icon != null) {
|
|
||||||
image.setImageDrawable(icon)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue