Wrap the erase dialog's handlers the way ktlint asks
Seven findings, all on lines the commit before this one added: two semicolon-joined statements in onClick lambdas and a chained call that wanted a newline. No behaviour. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
ef1a8138aa
commit
5b8177fba4
@@ -3624,7 +3624,10 @@ fun RegisteredDevicesSection(
|
||||
// somebody else is carrying, the first is the one that
|
||||
// matters.
|
||||
androidx.compose.material3.TextButton(
|
||||
onClick = { erasing = device.deviceId; passphrase = "" },
|
||||
onClick = {
|
||||
erasing = device.deviceId
|
||||
passphrase = ""
|
||||
},
|
||||
modifier = Modifier.testTag("erase-${device.deviceId}"),
|
||||
) { Text("Erase", color = MaterialTheme.colorScheme.error) }
|
||||
androidx.compose.material3.TextButton(
|
||||
@@ -3659,7 +3662,8 @@ fun RegisteredDevicesSection(
|
||||
label = { Text("Your passphrase") },
|
||||
singleLine = true,
|
||||
visualTransformation =
|
||||
androidx.compose.ui.text.input.PasswordVisualTransformation(),
|
||||
androidx.compose.ui.text.input
|
||||
.PasswordVisualTransformation(),
|
||||
modifier = Modifier.fillMaxWidth().testTag("erase-passphrase"),
|
||||
)
|
||||
}
|
||||
@@ -3680,7 +3684,10 @@ fun RegisteredDevicesSection(
|
||||
KitChip(
|
||||
text = "Cancel",
|
||||
selected = false,
|
||||
onClick = { erasing = null; passphrase = "" },
|
||||
onClick = {
|
||||
erasing = null
|
||||
passphrase = ""
|
||||
},
|
||||
tag = "erase-cancel",
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user