kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: hide GPS satellites with empty values
rodzic
de3d74b979
commit
f822080d0c
|
@ -216,19 +216,22 @@ fun NodeInfo(
|
||||||
suffix = elevationSuffix
|
suffix = elevationSuffix
|
||||||
)
|
)
|
||||||
|
|
||||||
SatelliteCountInfo(
|
val satCount = position.satellitesInView
|
||||||
modifier = Modifier.constrainAs(sats) {
|
if (satCount > 0) {
|
||||||
top.linkTo(alt.bottom, 4.dp)
|
SatelliteCountInfo(
|
||||||
linkTo(
|
modifier = Modifier.constrainAs(sats) {
|
||||||
start = pos.start,
|
top.linkTo(alt.bottom, 4.dp)
|
||||||
end = env.start,
|
linkTo(
|
||||||
endMargin = 8.dp,
|
start = pos.start,
|
||||||
bias = 0F,
|
end = env.start,
|
||||||
)
|
endMargin = 8.dp,
|
||||||
width = Dimension.preferredWrapContent
|
bias = 0F,
|
||||||
},
|
)
|
||||||
satCount = position.satellitesInView
|
width = Dimension.preferredWrapContent
|
||||||
)
|
},
|
||||||
|
satCount = satCount
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BatteryInfo(
|
BatteryInfo(
|
||||||
|
|
Ładowanie…
Reference in New Issue