Merge pull request #395 from Naveen3Singh/recording_quick_fix

Start recording anyway when shutter sound fails
This commit is contained in:
Tibor Kaputa 2023-01-15 21:06:45 +01:00 committed by GitHub
commit dee6247321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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
}