This commit is contained in:
Mariotaku Lee 2017-10-30 00:05:44 +08:00
commit 5557f9f57c
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 1 additions and 0 deletions

View File

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