Skip to content

Commit

Permalink
fix: add clearAndSetSemantics on disabled slider in fake audio player (
Browse files Browse the repository at this point in the history
  • Loading branch information
AkesiSeli authored Dec 27, 2024
1 parent df0fd2b commit 075b71b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.max
import chaintech.videoplayer.model.AudioFile
Expand Down Expand Up @@ -118,8 +119,12 @@ private fun FakeAudioPlayerComposable(
modifier = Modifier.weight(1f),
) {
Slider(
modifier =
Modifier
.fillMaxWidth()
.height(25.dp)
.clearAndSetSemantics { },
enabled = false,
modifier = Modifier.fillMaxWidth().height(25.dp),
value = 0f,
onValueChange = {},
colors =
Expand Down

0 comments on commit 075b71b

Please sign in to comment.