Merge branch 'radiKal07-master' into develop

This commit is contained in:
Mariotaku Lee 2017-10-30 00:05:57 +08:00
commit 2e40a30388
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)