mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: Messages UI Tweaks (#1856)
This commit is contained in:
parent
fc38a1a441
commit
d5a5efdcf4
3 changed files with 4 additions and 3 deletions
|
|
@ -216,7 +216,6 @@ fun NavDestination.isNodeDetailRoute(): Boolean {
|
|||
fun NavDestination.showLongNameTitle(): Boolean {
|
||||
|
||||
return !this.isTopLevel() && (
|
||||
this.hasRoute<Route.Messages>() ||
|
||||
this.hasRoute<Route.RadioConfig>() ||
|
||||
this.hasRoute<Route.NodeDetail>() ||
|
||||
this.isConfigRoute() ||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,9 @@ private fun MainAppBar(
|
|||
val canNavigateBack = navController.previousBackStackEntry != null
|
||||
val isTopLevelRoute = currentDestination?.isTopLevel() == true
|
||||
val navigateUp: () -> Unit = navController::navigateUp
|
||||
if (currentDestination?.hasRoute<Route.Messages>() == true) {
|
||||
return
|
||||
}
|
||||
TopAppBar(
|
||||
title = {
|
||||
when {
|
||||
|
|
|
|||
|
|
@ -387,8 +387,7 @@ private fun TextInput(
|
|||
message.value = it
|
||||
}
|
||||
},
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
.onFocusEvent { isFocused = it.isFocused },
|
||||
enabled = enabled,
|
||||
placeholder = { Text(stringResource(id = R.string.send_text)) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue