@@ -259,15 +259,15 @@ class ThreadListAdapter @Inject constructor(
259
259
260
260
multiSelection?.let { listener ->
261
261
selectionCardView.setOnLongClickListener {
262
- onThreadClickWithAbilityToOpenMultiSelection(thread, position, listener, TrackerAction .LONG_PRESS )
262
+ onThreadClickWithAbilityToOpenMultiSelection(thread, listener, TrackerAction .LONG_PRESS )
263
263
true
264
264
}
265
265
expeditorAvatar.apply {
266
266
setOnClickListener {
267
- onThreadClickWithAbilityToOpenMultiSelection(thread, position, listener, TrackerAction .CLICK )
267
+ onThreadClickWithAbilityToOpenMultiSelection(thread, listener, TrackerAction .CLICK )
268
268
}
269
269
setOnLongClickListener {
270
- onThreadClickWithAbilityToOpenMultiSelection(thread, position, listener, TrackerAction .LONG_PRESS )
270
+ onThreadClickWithAbilityToOpenMultiSelection(thread, listener, TrackerAction .LONG_PRESS )
271
271
true
272
272
}
273
273
}
@@ -319,14 +319,10 @@ class ThreadListAdapter @Inject constructor(
319
319
320
320
private fun CardviewThreadItemBinding.onThreadClickWithAbilityToOpenMultiSelection (
321
321
thread : Thread ,
322
- position : Int ,
323
322
listener : MultiSelectionListener <Thread >,
324
323
action : TrackerAction ,
325
324
) {
326
- if (isMultiselectDisabledInThisFolder) {
327
- onThreadClicked(thread, position)
328
- return
329
- }
325
+ if (isMultiselectDisabledInThisFolder) return
330
326
331
327
val hasOpened = openMultiSelectionIfClosed(listener, action)
332
328
toggleMultiSelectedThread(thread, shouldUpdateSelectedUi = ! hasOpened)
0 commit comments