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