Skip to content
Snippets Groups Projects
Verified Commit c1397e81 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 a57e5d10
Branches
Tags
1 merge request!55Bug 42355 and Bug 42346: fix fullscreen regressions
......@@ -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