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

Commit f663eb33 authored by Eric Laurent's avatar Eric Laurent Committed by Bruno Martins
Browse files

audio policy: fix media volume after ringtone

Fix regression introduced by commit 11c499a5 causing
music volume not to be restored after ringtone playback
over duplicated output (speaker + A2DP).

Bug: 31539910

Change-Id: I1c4eebea1f1a8f82ae2acfeecb9a61c437a74e25
parent cf45d54b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -843,6 +843,10 @@ status_t AudioPolicyManagerCustom::stopSource(sp<AudioOutputDescriptor> outputDe
                                    dev,
                                    force,
                                    delayMs);
                        // re-apply device specific volume if not done by setOutputDevice()
                        if (!force) {
                            applyStreamVolumes(desc, dev, delayMs);
                        }
                }
            }
            // update the outputs if stopping one with a stream that can affect notification routing