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

Commit 923d9331 authored by Mike McCreavy's avatar Mike McCreavy Committed by Android (Google) Code Review
Browse files

Merge "bootanim: audioplay: do not start audio thread if it is not allowed"

parents 4604081f 1cd98769
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -334,6 +334,11 @@ class AudioAnimationCallbacks : public android::BootAnimation::Callbacks {
public:
    void init(const Vector<Animation::Part>& parts) override {
        const Animation::Part* partWithAudio = nullptr;

        if (!playSoundsAllowed()) {
            return;
        }

        for (const Animation::Part& part : parts) {
            if (part.audioData != nullptr) {
                partWithAudio = &part;