Merge pull request #1283 from Xefir/fix-crash-settings-card

Backport #1108 Switch back to default privacy level after sending a Mastodon private toot.
This commit is contained in:
Tlaster 2020-04-28 13:34:12 +08:00 committed by GitHub
commit 03ff27e187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -687,6 +687,7 @@ class StatusViewHolder(private val adapter: IStatusesAdapter<*>, itemView: View)
listener.onItemActionClick(holder, R.id.favorite, position)
}
holder.mediaLabel -> {
if (position < 0) return
val firstMedia = holder.adapter.getStatus(position).media?.firstOrNull()
if (firstMedia != null) {
listener.onMediaClick(holder, v, firstMedia, position)