Merge pull request #78 from RyanRory/delete-thread-ui-fix

fix the issue that the cell is not showing after swiped out
This commit is contained in:
gmbnt 2020-02-07 14:27:46 +11:00 committed by GitHub
commit 06dae527a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,6 +282,12 @@ class HomeActivity : PassphraseRequiredActionBarActivity, ConversationClickListe
viewHolder.itemView.alpha = alpha viewHolder.itemView.alpha = alpha
viewHolder.itemView.translationX = dx viewHolder.itemView.translationX = dx
} }
override fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder) {
super.clearView(recyclerView, viewHolder)
viewHolder.itemView.alpha = 1.0f
viewHolder.itemView.translationX = 0.0f
}
} }
// endregion // endregion
} }