mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-04 14:13:47 -04:00
refactor: hide GPS satellites with empty values
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user