mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: change RecorderService state onDestroy
This commit is contained in:
parent
a4edfa539f
commit
c73f2c3189
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user