From a6fdfbb7b3ce51937f459c55564b9dc902635951 Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 25 Dec 2022 22:28:39 +0530 Subject: [PATCH] Start recording anyway when shutter sound fails --- .../com/simplemobiletools/camera/helpers/MediaActionSound.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt index 50b6fc45..dafa9907 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt @@ -152,6 +152,7 @@ class MediaActionSound(private val context: Context) { val soundId = loadSound(sound) if (soundId <= 0) { Log.e(TAG, "play() error loading sound: $mediaSound") + onPlayComplete?.invoke() } else { sound.state = STATE_LOADING_PLAY_REQUESTED }