mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 05:12:51 -05:00
fix: Messages UI Tweaks (#1856)
This commit is contained in:
@@ -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)) },
|
||||
|
||||
Reference in New Issue
Block a user