From 7c0994d957102be1918f250d9dd77226eb4e21d6 Mon Sep 17 00:00:00 2001 From: Alex Schwemler Date: Wed, 6 May 2026 20:50:29 +0200 Subject: [PATCH] chore: changed "sliderVal" to "sliderValue" for better readability --- .../nuvio/app/features/settings/PlaybackSettingsPage.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings/PlaybackSettingsPage.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings/PlaybackSettingsPage.kt index 14343246..e51e413d 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings/PlaybackSettingsPage.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings/PlaybackSettingsPage.kt @@ -616,7 +616,7 @@ private fun PlaybackSettingsSection( var sliderValue by remember(thresholdPercent) { mutableFloatStateOf(thresholdPercent) } var lastHapticPercent by remember(thresholdPercent) { mutableStateOf(thresholdPercent) } Slider( - value = sliderVal, + value = sliderValue, onValueChange = { val snapped = snapToStep(it, 0.5f) sliderValue = snapped @@ -627,7 +627,7 @@ private fun PlaybackSettingsSection( } }, onValueChangeFinished = { - PlayerSettingsRepository.setNextEpisodeThresholdPercent(sliderVal) + PlayerSettingsRepository.setNextEpisodeThresholdPercent(sliderValue) }, valueRange = 50f..100f, steps = 49, @@ -669,7 +669,7 @@ private fun PlaybackSettingsSection( var sliderValue by remember(thresholdMinutes) { mutableFloatStateOf(thresholdMinutes) } var lastHapticMin by remember(thresholdMinutes) { mutableStateOf(thresholdMinutes) } Slider( - value = sliderVal, + value = sliderValue, onValueChange = { val snapped = snapToStep(it, 0.5f) sliderValue = snapped @@ -680,7 +680,7 @@ private fun PlaybackSettingsSection( } }, onValueChangeFinished = { - PlayerSettingsRepository.setNextEpisodeThresholdMinutesBeforeEnd(sliderVal) + PlayerSettingsRepository.setNextEpisodeThresholdMinutesBeforeEnd(sliderValue) }, valueRange = 1f..15f, steps = 13,