Skip to content
Commit d461d476 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

AudioService: Fix setting LeAudio volume after VoIP call

When mode changes to NORMAL but the USAGE_VOICE_COMMUNICATION is still
present in the playback streams the mode change would trigger volume
update but would still use STREAM_VOICE_CALL volume level and the music
content will be resumed with voice call volume, possibly with higher
and potentially harmful volume level.

This change relies on mode change to get stream type from the mode
and therefor restores the right volume right away, without relying on
the onPlaybackConfigChange() which seems to be happening to late while
the loud music with the conversation volume level already reached the
listener.

Bug: 247659576
Tag: #feature
Test: manually testing with VoIP call while streaming media
Change-Id: Ie2225b7e92e0d3f7146e9266caf8bda81eddad03
parent 1add3774
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment