Catch native RuntimeExceptions in voice memo recording start.

This commit is contained in:
Nicholas Tinsley
2023-05-30 15:07:58 -04:00
parent 83e84228f5
commit 82db08b76f

View File

@@ -89,7 +89,7 @@ public class AudioRecorder {
}
recorder.start(fds[1]);
this.recordingSubject = recordingSingle;
} catch (IOException e) {
} catch (IOException | RuntimeException e) {
recordingSingle.onError(e);
recorder = null;
Log.w(TAG, e);