fix: Clean settings on reset

This commit is contained in:
Myzel394 2023-08-06 21:17:17 +02:00
parent 0d723bcfd4
commit 6a382e6660
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -144,10 +144,11 @@ class RecorderService: Service() {
stopForeground(STOP_FOREGROUND_REMOVE)
stopSelf()
resetCoroutineScope()
}
fun reset() {
resetCoroutineScope()
settings = null
recordingStart = null
counter = 0
amplitudes.clear()