Merge pull request #52 from wunter8/634-subscription-icons
634 subscription icons
This commit is contained in:
commit
c2eb9e9105
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ class MainAdapter(private val repository: Repository, private val onClick: (Subs
|
||||||
val showMutedUntilIcon = !showMutedForeverIcon && (subscription.mutedUntil > 1L || globalMutedUntil > 1L) && !isUnifiedPush
|
val showMutedUntilIcon = !showMutedForeverIcon && (subscription.mutedUntil > 1L || globalMutedUntil > 1L) && !isUnifiedPush
|
||||||
if (subscription.icon != null) {
|
if (subscription.icon != null) {
|
||||||
imageView.setImageBitmap(subscription.icon.readBitmapFromUriOrNull(context))
|
imageView.setImageBitmap(subscription.icon.readBitmapFromUriOrNull(context))
|
||||||
|
} else {
|
||||||
|
imageView.setImageResource(R.drawable.ic_sms_gray_24dp)
|
||||||
}
|
}
|
||||||
nameView.text = displayName(subscription)
|
nameView.text = displayName(subscription)
|
||||||
statusView.text = statusMessage
|
statusView.text = statusMessage
|
||||||
|
|
Loading…
Reference in a new issue