Replace unused lambda parameters by '_'

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-08-29 11:23:44 +02:00
parent 84116e4cb2
commit d8f37bec42
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E

View file

@ -1053,7 +1053,7 @@ class ConversationInfoController(args: Bundle) :
cornerRadius(res = R.dimen.corner_radius)
title(text = participant.displayName)
listItemsWithImage(items = items) { dialog, index, _ ->
listItemsWithImage(items = items) { _, index, _ ->
if (index == 0) {
removeAttendeeFromConversation(apiVersion, participant)
}
@ -1079,7 +1079,7 @@ class ConversationInfoController(args: Bundle) :
cornerRadius(res = R.dimen.corner_radius)
title(text = participant.displayName)
listItemsWithImage(items = items) { dialog, index, _ ->
listItemsWithImage(items = items) { _, index, _ ->
if (index == 0) {
removeAttendeeFromConversation(apiVersion, participant)
}
@ -1099,7 +1099,7 @@ class ConversationInfoController(args: Bundle) :
cornerRadius(res = R.dimen.corner_radius)
title(text = participant.displayName)
listItemsWithImage(items = items) { dialog, index, _ ->
listItemsWithImage(items = items) { _, index, _ ->
if (index == 0) {
removeAttendeeFromConversation(apiVersion, participant)
}
@ -1150,7 +1150,7 @@ class ConversationInfoController(args: Bundle) :
cornerRadius(res = R.dimen.corner_radius)
title(text = participant.displayName)
listItemsWithImage(items = items) { dialog, index, _ ->
listItemsWithImage(items = items) { _, index, _ ->
var actionToTrigger = index
if (participant.attendeePin == null || participant.attendeePin!!.isEmpty()) {
actionToTrigger++