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

Commit 52473267 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AudioService: fix volume shaper release"

parents eaff891f 0b30c5a6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -152,9 +152,11 @@ public final class PlaybackActivityMonitor
        synchronized(mPlayerLock) {
            final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
            if (checkConfigurationCaller(piid, apc, binderUid)) {
                try {
                    apc.getPlayerProxy().applyVolumeShaper(
                            DUCK_ID,
                            TERMINATE);
                } catch (Exception e) { /* silent failure, happens happens with binder failure */ }
                mPlayers.remove(new Integer(piid));
            } else {
                Log.e(TAG, "Error releasing player " + piid);