mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 11:28:22 +00:00
mapIndexed -> map
This commit is contained in:
@@ -111,7 +111,7 @@ fun LoginWithPubKey(
|
||||
.padding(horizontal = 8.dp)
|
||||
.clickable {
|
||||
selectAll = !selectAll
|
||||
dialogPermissions = dialogPermissions.mapIndexed { j, item ->
|
||||
dialogPermissions = dialogPermissions.map { item ->
|
||||
item.copy(checked = selectAll)
|
||||
}
|
||||
}
|
||||
@@ -124,7 +124,7 @@ fun LoginWithPubKey(
|
||||
checked = selectAll,
|
||||
onCheckedChange = {
|
||||
selectAll = !selectAll
|
||||
dialogPermissions = dialogPermissions.mapIndexed { j, item ->
|
||||
dialogPermissions = dialogPermissions.map { item ->
|
||||
item.copy(checked = selectAll)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user