mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Reset on startRecording to avoid leak
This commit is contained in:
parent
3a98762aa9
commit
bf405aa76d
@ -86,6 +86,8 @@ class AudioRecorderModel: ViewModel() {
|
||||
}
|
||||
|
||||
fun startRecording(context: Context) {
|
||||
reset()
|
||||
|
||||
runCatching {
|
||||
context.unbindService(connection)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user