Add onItemClick handling in CFV2.
This commit is contained in:
parent
e41dd6d39d
commit
b9ae537706
1 changed files with 12 additions and 2 deletions
|
@ -1670,8 +1670,18 @@ class ConversationFragment : LoggingFragment(R.layout.v2_conversation_fragment)
|
|||
}
|
||||
}
|
||||
|
||||
override fun onItemClick(item: MultiselectPart?) {
|
||||
// TODO [cfv2] -- ("Not yet implemented")
|
||||
override fun onItemClick(item: MultiselectPart) {
|
||||
if (actionMode != null) {
|
||||
adapter.toggleSelection(item)
|
||||
binding.conversationItemRecycler.invalidateItemDecorations()
|
||||
|
||||
if (adapter.selectedItems.isEmpty()) {
|
||||
actionMode?.finish()
|
||||
} else {
|
||||
setCorrectActionModeMenuVisibility()
|
||||
actionMode?.title = calculateSelectedItemCount()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onItemLongClick(itemView: View, item: MultiselectPart) {
|
||||
|
|
Loading…
Add table
Reference in a new issue