Apply volume keys to ringtone volume when call is coming in and to in-call volume during call

This commit is contained in:
Juha Heinanen
2025-05-19 11:51:58 +03:00
parent 9c302d14ae
commit 0dc790e4c1
2 changed files with 3 additions and 1 deletions

View File

@ -2333,7 +2333,7 @@ class MainActivity : ComponentActivity() {
val stream = if (am.mode == AudioManager.MODE_RINGTONE)
AudioManager.STREAM_RING
else
AudioManager.STREAM_MUSIC
AudioManager.STREAM_VOICE_CALL
when (keyCode) {
KeyEvent.KEYCODE_VOLUME_DOWN, KeyEvent.KEYCODE_VOLUME_UP -> {
am.adjustStreamVolume(stream,