forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(audio-recorder): crash if saving immediately
` if (isRecording || isRecordingPaused) {` returned true so `clearRecording` was called even though `stop()` has been called which crashed. ``` Done -> stopAndSaveRecording() then -> done() -> onViewFocusChanged() ``` We fix this by setting the state to CLEARED after stopAndSaveRecording Cause: cad603e I missed that `stopAndSaveRecording` was public Fixes 16321
- Loading branch information
1 parent
905a407
commit 5ed93ad
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters