Updated on 2026-08-14
This commit is contained in:
parent
3b9bfe13d8
commit
87b2ec8eaf
1 changed files with 11 additions and 4 deletions
|
|
@ -28,9 +28,15 @@ fun Picasso.loadCurrenciesIcon(
|
|||
textView.text = null
|
||||
|
||||
when {
|
||||
token?.symbol == QCX -> {
|
||||
this.load(R.drawable.ic_qcx)?.into(imageView)
|
||||
}
|
||||
url != null -> {
|
||||
if (token != null) {
|
||||
setTokenImage(imageView, textView, token)
|
||||
}
|
||||
this.load(url)
|
||||
.placeholder(R.drawable.shape_circle)
|
||||
.noPlaceholder()
|
||||
?.into(imageView,
|
||||
object : Callback {
|
||||
override fun onError(e: Exception?) {
|
||||
|
|
@ -38,12 +44,13 @@ fun Picasso.loadCurrenciesIcon(
|
|||
}
|
||||
|
||||
override fun onSuccess() {
|
||||
if (token != null) {
|
||||
imageView.colorFilter = null
|
||||
textView.text = null
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
token?.symbol == QCX -> {
|
||||
this.load(R.drawable.ic_qcx)?.into(imageView)
|
||||
}
|
||||
else -> {
|
||||
setOfflineCurrencyImage(imageView, textView, token, blockchain)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue