Revert change

This commit is contained in:
Benoit Marty
2026-05-26 16:16:27 +02:00
committed by Benoit Marty
parent 7003bf5702
commit 5ebeddfe2e
@@ -344,7 +344,6 @@ private fun LiveLocationUpdatesSection(
onOpenAppPermissionsClick: () -> Unit, onOpenAppPermissionsClick: () -> Unit,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) { ) {
val updatedOnSaveValue by rememberUpdatedState(onSaveValue)
PreferenceCategory( PreferenceCategory(
modifier = modifier, modifier = modifier,
showTopDivider = true, showTopDivider = true,
@@ -384,7 +383,7 @@ private fun LiveLocationUpdatesSection(
value = sliderValue.toFloat(), value = sliderValue.toFloat(),
onValueChange = { sliderValue = it.roundToInt() }, onValueChange = { sliderValue = it.roundToInt() },
onValueChangeFinish = { onValueChangeFinish = {
updatedOnSaveValue(sliderValue) onSaveValue(sliderValue)
}, },
valueRange = valueRange, valueRange = valueRange,
colors = SliderDefaults.colors( colors = SliderDefaults.colors(