mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Remove stringResource() id named argument (#3618)
This commit is contained in:
parent
828edc653f
commit
a687328f08
68 changed files with 196 additions and 224 deletions
|
|
@ -222,7 +222,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
|
|||
Text(text = annotateTraceroute(response))
|
||||
}
|
||||
},
|
||||
dismissText = stringResource(id = R.string.okay),
|
||||
dismissText = stringResource(R.string.okay),
|
||||
onDismiss = { uIViewModel.clearTracerouteResponse() },
|
||||
)
|
||||
}
|
||||
|
|
@ -283,7 +283,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
|
|||
ConnectionState.DISCONNECTED -> stringResource(R.string.disconnected)
|
||||
}
|
||||
} else {
|
||||
stringResource(id = destination.label)
|
||||
stringResource(destination.label)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
@ -347,7 +347,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
|
|||
) {
|
||||
Icon(
|
||||
imageVector = destination.icon,
|
||||
contentDescription = stringResource(id = destination.label),
|
||||
contentDescription = stringResource(destination.label),
|
||||
tint = LocalContentColor.current,
|
||||
)
|
||||
}
|
||||
|
|
@ -357,7 +357,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
|
|||
selected = isSelected,
|
||||
label = {
|
||||
if (navSuiteType != NavigationSuiteType.ShortNavigationBarCompact) {
|
||||
Text(stringResource(id = destination.label))
|
||||
Text(stringResource(destination.label))
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ fun ConnectionsScreen(
|
|||
TitledCard(title = null) {
|
||||
ListItem(
|
||||
leadingIcon = Icons.Rounded.Language,
|
||||
text = stringResource(id = R.string.set_your_region),
|
||||
text = stringResource(R.string.set_your_region),
|
||||
) {
|
||||
isWaiting = true
|
||||
radioConfigViewModel.setResponseStateLoading(ConfigRoute.LORA)
|
||||
|
|
|
|||
|
|
@ -241,8 +241,8 @@ fun ChannelScreen(
|
|||
channelSet = channels // throw away any edits
|
||||
showResetDialog = false
|
||||
},
|
||||
title = { Text(text = stringResource(id = R.string.reset_to_defaults)) },
|
||||
text = { Text(text = stringResource(id = R.string.are_you_sure_change_default)) },
|
||||
title = { Text(text = stringResource(R.string.reset_to_defaults)) },
|
||||
text = { Text(text = stringResource(R.string.are_you_sure_change_default)) },
|
||||
confirmButton = {
|
||||
TextButton(
|
||||
onClick = {
|
||||
|
|
@ -257,7 +257,7 @@ fun ChannelScreen(
|
|||
showResetDialog = false
|
||||
},
|
||||
) {
|
||||
Text(text = stringResource(id = R.string.apply))
|
||||
Text(text = stringResource(R.string.apply))
|
||||
}
|
||||
},
|
||||
dismissButton = {
|
||||
|
|
@ -267,7 +267,7 @@ fun ChannelScreen(
|
|||
showResetDialog = false
|
||||
},
|
||||
) {
|
||||
Text(text = stringResource(id = R.string.cancel))
|
||||
Text(text = stringResource(R.string.cancel))
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ fun ShareScreen(contacts: List<Contact>, onConfirm: (String) -> Unit, onNavigate
|
|||
Scaffold(
|
||||
topBar = {
|
||||
MainAppBar(
|
||||
title = stringResource(id = R.string.share_to),
|
||||
title = stringResource(R.string.share_to),
|
||||
ourNode = null,
|
||||
showNodeChip = false,
|
||||
canNavigateUp = true,
|
||||
|
|
@ -92,10 +92,7 @@ fun ShareScreen(contacts: List<Contact>, onConfirm: (String) -> Unit, onNavigate
|
|||
modifier = Modifier.fillMaxWidth().padding(24.dp),
|
||||
enabled = selectedContact.isNotEmpty(),
|
||||
) {
|
||||
Icon(
|
||||
imageVector = Icons.AutoMirrored.Default.Send,
|
||||
contentDescription = stringResource(id = R.string.share),
|
||||
)
|
||||
Icon(imageVector = Icons.AutoMirrored.Default.Send, contentDescription = stringResource(R.string.share))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue