mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
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:
1 parent
d1cc944be2
commit
7e90071c4d
2 files changed
+3
-4
No files matched your search
+2
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user