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

Commit 78b751d1 authored by Kevin Rocard's avatar Kevin Rocard Committed by android-build-merger
Browse files

Propagate to apps capture opt-in

am: 337f8ce4

Change-Id: I2aa11eeb7f93517d77696318388538624ba99de3
parents 1777d3e2 337f8ce4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package android.media;

import static android.media.AudioAttributes.ALLOW_CAPTURE_BY_ALL;
import static android.media.AudioAttributes.ALLOW_CAPTURE_BY_NONE;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.SystemApi;
@@ -235,6 +238,9 @@ public final class AudioPlaybackConfiguration implements Parcelable {
                .setUsage(in.mPlayerAttr.getUsage())
                .setContentType(in.mPlayerAttr.getContentType())
                .setFlags(in.mPlayerAttr.getFlags())
                .setAllowedCapturePolicy(
                        in.mPlayerAttr.getAllowedCapturePolicy() == ALLOW_CAPTURE_BY_ALL
                        ? ALLOW_CAPTURE_BY_ALL : ALLOW_CAPTURE_BY_NONE)
                .build();
        // anonymized data
        anonymCopy.mPlayerType = PLAYER_TYPE_UNKNOWN;