Skip to content
Commit d8817a74 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: fix stream aliasing update

When updating the stream aliases table, mStreamVolumeAlias
should point to a copy of the default alias table it's starting
from, not its reference.
This fixes an issue where changing the aliasing between ring
and notification would work when unaliasing, but not when
aliasing, as the contents of the alias table had been overwritten
already.

Bug: 265076070
Test: atest android.media.audio.cts.AudioManagerTest#testStreamTypeAliasChange
Change-Id: I74bc7fdf054ef295876c8a5503111c14d084e8d2
Merged-In: I74bc7fdf054ef295876c8a5503111c14d084e8d2
(cherry picked from commit e620bc2a)
parent 5f3bb108
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