Stop alarm before calling dismiss

This commit is contained in:
Milos Kozak 2022-07-18 13:38:52 +02:00
parent 49421da1d6
commit b061bc7dd6

View file

@ -70,6 +70,7 @@ class ErrorDialog : DaggerDialogFragment() {
binding.title.text = title
binding.ok.setOnClickListener {
uel.log(Action.ERROR_DIALOG_OK, Sources.Unknown)
stopAlarm("Dismiss")
dismiss()
}
binding.mute.setOnClickListener {
@ -110,7 +111,6 @@ class ErrorDialog : DaggerDialogFragment() {
super.dismissAllowingStateLoss()
helperActivity?.finish()
handler.removeCallbacksAndMessages(null)
stopAlarm("Dismiss")
}
private fun startAlarm() {