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
|
isPaused = true
|
||||||
}
|
}
|
||||||
|
|
||||||
RecorderState.IDLE -> {
|
else -> {}
|
||||||
onDestroy()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
when (newState) {
|
when (newState) {
|
||||||
@ -148,6 +146,7 @@ abstract class RecorderService : Service() {
|
|||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
|
changeState(RecorderState.IDLE)
|
||||||
|
|
||||||
stopForeground(STOP_FOREGROUND_REMOVE)
|
stopForeground(STOP_FOREGROUND_REMOVE)
|
||||||
NotificationManagerCompat.from(this)
|
NotificationManagerCompat.from(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user