refactor: hide GPS satellites with empty values

pull/1048/head
andrekir 2024-05-19 06:47:48 -03:00
rodzic de3d74b979
commit f822080d0c
1 zmienionych plików z 16 dodań i 13 usunięć

Wyświetl plik

@ -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(