fix: Fallback to 0 amplitude on RuntimeException

This commit is contained in:
Myzel394 2023-08-17 11:39:13 +02:00
parent 191986a99f
commit fc47baf56e
No known key found for this signature in database
GPG Key ID: 50098FCA22080F0F

View File

@ -78,6 +78,8 @@ class AudioRecorderService: IntervalRecorderService() {
recorder!!.maxAmplitude
} catch (error: IllegalStateException) {
0
} catch (error: RuntimeException) {
0
}
}
}