mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-01 14:16:49 +00:00
Add onItemClick handling in CFV2.
This commit is contained in:
committed by
Cody Henthorne
parent
e41dd6d39d
commit
b9ae537706
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user