diff --git a/app/src/main/java/com/geeksville/mesh/ui/Main.kt b/app/src/main/java/com/geeksville/mesh/ui/Main.kt
index 21ad5dce..0ef0c3cc 100644
--- a/app/src/main/java/com/geeksville/mesh/ui/Main.kt
+++ b/app/src/main/java/com/geeksville/mesh/ui/Main.kt
@@ -271,11 +271,17 @@ fun MainScreen(
}
} else if (action is NodeMenuAction) {
when (action) {
- is NodeMenuAction.MoreDetails -> navController.navigate(
- NodesRoutes.NodeDetail(
- action.node.num
+ is NodeMenuAction.MoreDetails -> {
+ navController.navigate(
+ NodesRoutes.NodeDetail(
+ action.node.num
+ ),
+ {
+ launchSingleTop = true
+ restoreState = true
+ }
)
- )
+ }
is NodeMenuAction.Share -> sharedContact = action.node
else -> {}
@@ -458,12 +464,14 @@ private fun TopBarActions(
val ourNode by viewModel.ourNodeInfo.collectAsStateWithLifecycle()
val isConnected by viewModel.isConnected.collectAsStateWithLifecycle(false)
AnimatedVisibility(ourNode != null) {
- NodeChip(
- node = ourNode!!,
- isThisNode = true,
- isConnected = isConnected,
- onAction = onAction
- )
+ ourNode?.let {
+ NodeChip(
+ node = it,
+ isThisNode = true,
+ isConnected = isConnected,
+ onAction = onAction
+ )
+ }
}
when {
currentDestination == null || isTopLevelRoute ->
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2a97396a..8aac4f9b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -166,7 +166,7 @@
500 last messages
Filters
Active filters (Match any)
- Search in logs...
+ Search in logs…
Clear Logs
Clear
Updating firmware, wait up to eight minutes…
@@ -368,14 +368,14 @@
Are you sure?
Device Role Documentation and the blog post about Choosing The Right Device Role.]]>
I know what I\'m doing.
- Node %s has a low battery (%d%%)
+ Node %1$s has a low battery (%2$d%%)
Low battery notifications
Low battery: %s
Low battery notifications (favorite nodes)
Barometric Pressure
Mesh via UDP enabled
UDP Config
- Last heard: %s
Last position: %s
Battery: %s]]>
+ Last heard: %2$s
Last position: %3$s
Battery: %4$s]]>
Toggle my position
User
Channels