AudioService: default volume group is not restored
Volume Group with associated stream type does not have their volume
restored after restart / crash even if correctly stored in
Settings DB.
A guard prevents from restoring it. However, when using volume per attributes,
Settings DB is used, so it is safe to restore volumes for all groups.
This CL fixes this issue by removing this guard.
Bug: 136121584
Test: set Music volume & reboot & dumpsys audio
Ensure indexes matches
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I00aa8c17bffca21a128086fbbbeafffc26521a3b
This commit is contained in:
committed by
Eric Laurent
parent
176dc1fc03
commit
051829b895
@@ -4888,10 +4888,6 @@ public class AudioService extends IAudioService.Stub
|
||||
|
||||
public void applyAllVolumes() {
|
||||
synchronized (VolumeGroupState.class) {
|
||||
if (mLegacyStreamType != AudioSystem.STREAM_DEFAULT) {
|
||||
// No-op to avoid regression with stream based volume management
|
||||
return;
|
||||
}
|
||||
// apply device specific volumes first
|
||||
int index;
|
||||
for (int i = 0; i < mIndexMap.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user