ignore exceptions thrown at dismissing the Security Dialog
This commit is contained in:
parent
667109625a
commit
7e9642d830
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue