Stop media player when destroying AlarmService
This commit is contained in:
parent
41417390f4
commit
b264fc815d
|
@ -46,6 +46,7 @@ class AlarmService : Service(), OnPreparedListener {
|
|||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
mediaPlayer?.stop()
|
||||
mediaPlayer?.release()
|
||||
vibrator?.cancel()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user