Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bab0ddc4 authored by Anton Potapov's avatar Anton Potapov
Browse files

Update local state value when the state value changes

This allows the volume slider to get updates from other sources, like physical
buttons.

Flag: aconfig new_volume_panel STAGING
Test: manual on the phone
Fixes: 326393576
Change-Id: I8976411f9e9c35340f254112f2947888da7103b4
parent 9327855e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ fun VolumeSlider(
    modifier: Modifier = Modifier,
    sliderColors: PlatformSliderColors,
) {
    var value by remember { mutableFloatStateOf(state.value) }
    var value by remember(state.value) { mutableFloatStateOf(state.value) }
    PlatformSlider(
        modifier = modifier,
        value = value,