ignore exceptions thrown at dismissing the Security Dialog

This commit is contained in:
tibbi 2023-06-09 12:31:06 +02:00
parent 667109625a
commit 7e9642d830

View file

@ -95,7 +95,10 @@ class SecurityDialog(
override fun receivedHash(hash: String, type: Int) {
callback(hash, type, true)
if (!activity.isFinishing) {
dialog?.dismiss()
try {
dialog?.dismiss()
} catch (ignored: Exception) {
}
}
}