Do not crash on/avoid index out of bounds
This commit is contained in:
parent
cf50d0563f
commit
bca98d2f48
2 changed files with 2 additions and 2 deletions
|
|
@ -161,7 +161,7 @@ class NotificationsFragment :
|
|||
binding.recyclerView,
|
||||
this
|
||||
) { pos: Int ->
|
||||
val notification = adapter.snapshot()[pos]
|
||||
val notification = adapter.snapshot().getOrNull(pos)
|
||||
// We support replies only for now
|
||||
if (notification is NotificationViewData) {
|
||||
notification.statusViewData
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue