From 566c4a52654e62b99e76130f8c8e1c9f7755bc45 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 8 Jun 2025 10:51:06 +0300 Subject: [PATCH] Fixed Default Call Volume audio setting --- app/src/main/kotlin/com/tutpro/baresip/AudioScreen.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/AudioScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/AudioScreen.kt index 8bd2610c..f3d60eff 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AudioScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AudioScreen.kt @@ -131,8 +131,7 @@ private fun AudioScreen( } } -private var oldCallVolume = BaresipService.callVolume -private var newCallVolume = oldCallVolume +private var newCallVolume = BaresipService.callVolume private var oldMicGain = "" private var newMicGain = "" private var oldSpeakerPhone = BaresipService.speakerPhone @@ -216,7 +215,7 @@ private fun CallVolume() { val volNames = listOf("--", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10") val volValues = listOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val itemPosition = remember { - mutableIntStateOf(volValues.indexOf(oldCallVolume)) + mutableIntStateOf(volValues.indexOf(BaresipService.callVolume)) } Box { Row(