fix the issue that the cell is not showing after swiped out

This commit is contained in:
Ryan ZHAO 2020-02-07 11:34:28 +11:00
parent a55e2bd702
commit df1814800a

View File

@ -282,6 +282,12 @@ class HomeActivity : PassphraseRequiredActionBarActivity, ConversationClickListe
viewHolder.itemView.alpha = alpha
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
}