Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 051829b8 authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

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: default avatarFrancois Gaffie <francois.gaffie@renault.com>

Change-Id: I00aa8c17bffca21a128086fbbbeafffc26521a3b
parent 176dc1fc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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++) {