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

Commit e6a823c2 authored by Chih-Chung Chang's avatar Chih-Chung Chang Committed by Android Git Automerger
Browse files

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

* commit 'f806871f3016a8184de4c9dcfbe0b9069dc0d72c':
  Fix 5487571: Make sure shutter sound is played when it's enforced
parents d24bac2f 8888a75f
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();
    }
}
}

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