android/ui: change click target for exit node picker

This makes sure only the relevant UI control flashes on click

Updates #cleanup

Signed-off-by: Percy Wegmann <percy@tailscale.com>
ox/exit_node_clickable
Percy Wegmann 2 years ago
parent fb5635b8a5
commit f76a754ef2
No known key found for this signature in database
GPG Key ID: 29D8CDEB4C13D48B

@ -146,12 +146,12 @@ fun ExitNodeStatus(navAction: () -> Unit, viewModel: MainViewModel) {
Box( Box(
modifier = modifier =
Modifier.clickable { navAction() } Modifier.padding(horizontal = 16.dp)
.padding(horizontal = 16.dp)
.clip(shape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 10.dp)) .clip(shape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 10.dp))
.background(MaterialTheme.colorScheme.background) .background(MaterialTheme.colorScheme.background)
.fillMaxWidth()) { .fillMaxWidth()) {
ListItem( ListItem(
modifier = Modifier.clickable { navAction() },
headlineContent = { headlineContent = {
Text( Text(
stringResource(R.string.exit_node), stringResource(R.string.exit_node),

Loading…
Cancel
Save