Don't show any channel notification thumbnail if it could not be loaded
This commit is contained in:
parent
e68d49e7df
commit
fcd2d63df4
2 changed files with 3 additions and 6 deletions
|
|
@ -84,8 +84,8 @@ class NotificationHelper(val context: Context) {
|
|||
)
|
||||
)
|
||||
|
||||
PicassoHelper.loadNotificationIcon(data.avatarUrl, context) { bitmap ->
|
||||
builder.setLargeIcon(bitmap)
|
||||
PicassoHelper.loadNotificationIcon(data.avatarUrl) { bitmap ->
|
||||
bitmap?.let { builder.setLargeIcon(it) } // set only if != null
|
||||
manager.notify(data.pseudoId, builder.build())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue