Skip to content
Snippets Groups Projects
Verified Commit 0cd27910 authored by t-p-white's avatar t-p-white Committed by ma1
Browse files

Bug 1864549 - Fix for IllegalStateException in full screen notification dialog

parent 753c937e
Branches
No related tags found
No related merge requests found
......@@ -59,11 +59,12 @@ class FullScreenNotificationDialog(@LayoutRes val layout: Int) :
window.setGravity(Gravity.BOTTOM)
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
}
}
// Attempt to automatically dismiss the dialog after the given duration.
lifecycleScope.launch {
delay(SNACKBAR_DURATION_LONG_MS)
dismiss()
}
dialog?.dismiss()
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment