fix: revert radar pager to Transceivers tab, default minElev to 0

- Radar pager now defaults to Transceivers tab (initialPage=0)
- Transceivers don't auto-expand (selectedUuid defaults to null)
- Mutual page default minElev changed from settings value to 0.0
- Display filters out portions below the minElev threshold
This commit is contained in:
atsunatsu committed 2026-08-03 03:58:45 +08:00
1 parent d1cc944be2
commit 7e90071c4d
2 files changed
+3 -4

No files matched your search

@@ -66,13 +66,12 @@ class MutualViewModel(
// and default min elevation to the same value used by the main radar passes
val pos = settingsRepo.stationPosition.value
val grid = latLonToGrid(pos.latitude, pos.longitude)
val minElev = settingsRepo.passesSettings.value.minElevation
_uiState.update { it.copy(
stationAGrid = grid,
stationALat = "%.4f".format(pos.latitude),
stationALon = "%.4f".format(pos.longitude),
stationAMinElev = minElev,
stationBMinElev = minElev
stationAMinElev = 0.0,
stationBMinElev = 0.0
) }
}
@@ -184,7 +184,7 @@ private fun PagerCard(
modifier: Modifier = Modifier
) {
val pages = RadarPage.entries
val pagerState = rememberPagerState(initialPage = 1, pageCount = { pages.size })
val pagerState = rememberPagerState(pageCount = { pages.size })
val coroutineScope = rememberCoroutineScope()
ElevatedCard(modifier = modifier) {