Start recording anyway when shutter sound fails

This commit is contained in:
Naveen 2022-12-25 22:28:39 +05:30
parent 6a80289c37
commit a6fdfbb7b3

View File

@ -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
}