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

Commit 8888a75f authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix 5487571: Make sure shutter sound is played when it's enforced

Change-Id: I0c7adf452217b8308243836b40b1fba8f2029240
parent 2e5bcd4a
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -331,16 +331,10 @@ void CameraService::playSound(sound_kind kind) {
    Mutex::Autolock lock(mSoundLock);
    sp<MediaPlayer> player = mSoundPlayer[kind];
    if (player != 0) {
        // do not play the sound if stream volume is 0
        // (typically because ringer mode is silent).
        int index;
        AudioSystem::getStreamVolumeIndex(mAudioStreamType, &index);
        if (index != 0) {
        player->seekTo(0);
        player->start();
    }
}
}

// ----------------------------------------------------------------------------