mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Refactor: Improve connection state display in UI (#2353)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
5fdf383539
commit
fa0679b3f2
9 changed files with 110 additions and 88 deletions
|
|
@ -473,7 +473,7 @@ private fun TopBarActions(
|
|||
) {
|
||||
val ourNode by viewModel.ourNodeInfo.collectAsStateWithLifecycle()
|
||||
val isConnected by viewModel.isConnected.collectAsStateWithLifecycle(false)
|
||||
AnimatedVisibility(ourNode != null && currentDestination?.isTopLevel() == true) {
|
||||
AnimatedVisibility(ourNode != null && currentDestination?.isTopLevel() == true && isConnected) {
|
||||
ourNode?.let {
|
||||
NodeChip(
|
||||
node = it,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue