fix: change RecorderService state onDestroy

This commit is contained in:
Myzel394 2023-10-21 22:56:52 +02:00
parent a4edfa539f
commit c73f2c3189
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -101,9 +101,7 @@ abstract class RecorderService : Service() {
isPaused = true
}
RecorderState.IDLE -> {
onDestroy()
}
else -> {}
}
when (newState) {
@ -148,6 +146,7 @@ abstract class RecorderService : Service() {
super.onDestroy()
stop()
changeState(RecorderState.IDLE)
stopForeground(STOP_FOREGROUND_REMOVE)
NotificationManagerCompat.from(this)