mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: remove channel disambiguation suffix
This commit is contained in:
parent
a3a914abce
commit
ee61b79aa3
3 changed files with 5 additions and 20 deletions
|
|
@ -241,11 +241,12 @@ fun ChannelScreen(
|
|||
|
||||
fun sendButton() {
|
||||
primaryChannel?.let { primaryChannel ->
|
||||
val humanName = primaryChannel.humanName
|
||||
val message = buildString {
|
||||
append(context.getString(R.string.are_you_sure_channel))
|
||||
if (primaryChannel.settings == Channel.default.settings)
|
||||
append("\n\n" + context.getString(R.string.warning_default_psk, humanName))
|
||||
if (primaryChannel.settings == Channel.default.settings) {
|
||||
append("\n\n")
|
||||
append(context.getString(R.string.warning_default_psk, primaryChannel.name))
|
||||
}
|
||||
}
|
||||
|
||||
MaterialAlertDialogBuilder(context)
|
||||
|
|
@ -290,7 +291,7 @@ fun ChannelScreen(
|
|||
if (!showChannelEditor) item {
|
||||
ClickableTextField(
|
||||
label = R.string.channel_name,
|
||||
value = primaryChannel?.humanName.orEmpty(),
|
||||
value = primaryChannel?.name.orEmpty(),
|
||||
onClick = { showChannelEditor = true },
|
||||
enabled = enabled,
|
||||
trailingIcon = Icons.TwoTone.Edit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue