mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-01-24 23:45:38 +01:00
destroy mediaplayer at ReminderActivity at onDestroy, not onStop
This commit is contained in:
parent
d69ed5543c
commit
cf05ba6565
@ -16,7 +16,7 @@ import com.simplemobiletools.commons.helpers.MINUTE_SECONDS
|
||||
import kotlinx.android.synthetic.main.activity_reminder.*
|
||||
|
||||
class ReminderActivity : SimpleActivity() {
|
||||
private val INCREASE_VOLUME_DELAY = 1000L
|
||||
private val INCREASE_VOLUME_DELAY = 3000L
|
||||
|
||||
private val increaseVolumeHandler = Handler()
|
||||
private val maxReminderDurationHandler = Handler()
|
||||
@ -97,8 +97,8 @@ class ReminderActivity : SimpleActivity() {
|
||||
finish()
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
increaseVolumeHandler.removeCallbacksAndMessages(null)
|
||||
maxReminderDurationHandler.removeCallbacksAndMessages(null)
|
||||
destroyPlayer()
|
||||
|
Loading…
Reference in New Issue
Block a user