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,
modifier: Modifier = Modifier,
) {
val updatedOnSaveValue by rememberUpdatedState(onSaveValue)
PreferenceCategory(
modifier = modifier,
showTopDivider = true,
@@ -384,7 +383,7 @@ private fun LiveLocationUpdatesSection(
value = sliderValue.toFloat(),
onValueChange = { sliderValue = it.roundToInt() },
onValueChangeFinish = {
updatedOnSaveValue(sliderValue)
onSaveValue(sliderValue)
},
valueRange = valueRange,
colors = SliderDefaults.colors(