Fixed #1108
This commit is contained in:
commit
5557f9f57c
|
@ -681,6 +681,7 @@ class StatusViewHolder(private val adapter: IStatusesAdapter, itemView: View) :
|
|||
listener.onItemActionClick(this@StatusViewHolder, R.id.favorite, position)
|
||||
}
|
||||
mediaLabel -> {
|
||||
if (position < 0) return
|
||||
val firstMedia = adapter.getStatus(position).media?.firstOrNull()
|
||||
if (firstMedia != null) {
|
||||
listener.onMediaClick(this@StatusViewHolder, v, firstMedia, position)
|
||||
|
|
Loading…
Reference in New Issue