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

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

Merge "AudioService: fix capture policy restoration" into sc-dev

parents 023fa143 07bd4300
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -380,10 +380,12 @@ public final class PlaybackActivityMonitor
    }

    /**
     * Return all cached capture policies.
     * Return a copy of all cached capture policies.
     */
    public HashMap<Integer, Integer> getAllAllowedCapturePolicies() {
        return mAllowedCapturePolicies;
        synchronized (mAllowedCapturePolicies) {
            return (HashMap<Integer, Integer>) mAllowedCapturePolicies.clone();
        }
    }

    private void updateAllowedCapturePolicy(AudioPlaybackConfiguration apc, int capturePolicy) {