параметры экрана моей карты - < /p>
Код: Выделить всё
@Composable
fun TrackerMap(
modifier: Modifier = Modifier,
isRunFinished: Boolean,
currentLocation: Location?,
locations: List,
onSnapshot: (Bitmap) -> Unit
)
< /code>
currentLocation
Код: Выделить всё
@Composable
private fun ActiveRunScreen(
state: ActiveRunState,
onAction: (ActiveRunAction) -> Unit
) {
TrackerMap(
isRunFinished = state.isRunFinished,
currentLocation = state.currentLocation,
locations = state.runData.locations,
onSnapshot = {},
modifier = Modifier.fillMaxSize()
)
}
< /code>
The problem is when I haven't started running yet, the app is not tracking the time so nothing is changing in the run data object. But when I start the run time is being recorded inside runData
Как это реализовать, чтобы остановить карту трекера постоянно, поскольку она испорчена с помощью анимации и вывода камеры?>
Подробнее здесь: https://stackoverflow.com/questions/795 ... omposition