diff --git a/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt b/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt index 2f5b69b50..2ad2b742c 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt @@ -216,19 +216,22 @@ fun NodeInfo( suffix = elevationSuffix ) - SatelliteCountInfo( - modifier = Modifier.constrainAs(sats) { - top.linkTo(alt.bottom, 4.dp) - linkTo( - start = pos.start, - end = env.start, - endMargin = 8.dp, - bias = 0F, - ) - width = Dimension.preferredWrapContent - }, - satCount = position.satellitesInView - ) + val satCount = position.satellitesInView + if (satCount > 0) { + SatelliteCountInfo( + modifier = Modifier.constrainAs(sats) { + top.linkTo(alt.bottom, 4.dp) + linkTo( + start = pos.start, + end = env.start, + endMargin = 8.dp, + bias = 0F, + ) + width = Dimension.preferredWrapContent + }, + satCount = satCount + ) + } } BatteryInfo(