Commit 53e0e04b authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Fix IllegalArgumentException

parent 183c939e
......@@ -449,7 +449,10 @@ object MediaUtils : CoroutineScope {
}
private fun dismiss() {
if (this::dialog.isInitialized && dialog.isShowing) dialog.dismiss()
try {
if (this::dialog.isInitialized && dialog.isShowing) dialog.dismiss()
} catch (ignored: IllegalArgumentException) {
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment