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

Commit 95c3e899 authored by Tomoharu Kasahara's avatar Tomoharu Kasahara Committed by android-build-merger
Browse files

Merge "The sonification sound is muted during a shutter sound" am: a4c38d6e

am: 2b82a9a1

Change-Id: I899ee627557f15b16bd3dbc1a89a4be5f1030de2
parents fe2fd813 2b82a9a1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1271,6 +1271,11 @@ status_t AudioPolicyManager::startSource(const sp<AudioOutputDescriptor>& output
        setStrategyMute(STRATEGY_SONIFICATION, true, outputDesc);
    }

    if (stream == AUDIO_STREAM_ENFORCED_AUDIBLE &&
            mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) {
        setStrategyMute(STRATEGY_SONIFICATION, true, outputDesc);
    }

    return NO_ERROR;
}