Stop media player when destroying AlarmService

This commit is contained in:
Brandon Presley 2022-08-22 15:48:30 +12:00
parent 41417390f4
commit b264fc815d
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class AlarmService : Service(), OnPreparedListener {
override fun onDestroy() {
super.onDestroy()
mediaPlayer?.stop()
mediaPlayer?.release()
vibrator?.cancel()
}