Merge branch 'radiKal07-master' into develop
This commit is contained in:
commit
2e40a30388
|
@ -681,6 +681,7 @@ class StatusViewHolder(private val adapter: IStatusesAdapter, itemView: View) :
|
||||||
listener.onItemActionClick(this@StatusViewHolder, R.id.favorite, position)
|
listener.onItemActionClick(this@StatusViewHolder, R.id.favorite, position)
|
||||||
}
|
}
|
||||||
mediaLabel -> {
|
mediaLabel -> {
|
||||||
|
if (position < 0) return
|
||||||
val firstMedia = adapter.getStatus(position).media?.firstOrNull()
|
val firstMedia = adapter.getStatus(position).media?.firstOrNull()
|
||||||
if (firstMedia != null) {
|
if (firstMedia != null) {
|
||||||
listener.onMediaClick(this@StatusViewHolder, v, firstMedia, position)
|
listener.onMediaClick(this@StatusViewHolder, v, firstMedia, position)
|
||||||
|
|
Loading…
Reference in New Issue