Merge pull request #52 from wunter8/634-subscription-icons

634 subscription icons
This commit is contained in:
Philipp C. Heckel 2023-03-02 20:51:43 -05:00 committed by GitHub
commit c2eb9e9105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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