Update default unmute volume

This commit is contained in:
Naveen Singh 2024-09-08 01:49:08 +05:30
parent dfac193974
commit bd155acbe3
No known key found for this signature in database
GPG key ID: 35F7D64346B28ED7

View file

@ -14,7 +14,7 @@ class VolumeController(
private val onVolumeChanged: (isMuted: Boolean) -> Unit private val onVolumeChanged: (isMuted: Boolean) -> Unit
) { ) {
private var audioManager = context.audioManager private var audioManager = context.audioManager
private var savedVolume = audioManager.getStreamMaxVolume(streamType) / 2 private var savedVolume = audioManager.getStreamMaxVolume(streamType)
private val currentVolume: Int private val currentVolume: Int
get() = audioManager.getStreamVolume(streamType) get() = audioManager.getStreamVolume(streamType)