1
0
mirror of https://github.com/etesync/android synced 2025-01-03 12:21:01 +00:00

Import: fix crashes for some users when activities disappear.

This commit is contained in:
Tom Hacohen 2021-01-11 12:48:30 +02:00
parent 4fa4fb0dfe
commit 6d5136fbbb
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ class LocalCalendarImportFragment : ListFragment() {
return return
} }
if (progressDialog.isShowing && !activity.isDestroyed) { if (progressDialog.isShowing && !activity.isDestroyed && !activity.isFinishing) {
progressDialog.dismiss() progressDialog.dismiss()
} }
onImportResult(result) onImportResult(result)

View File

@ -127,7 +127,7 @@ class LocalContactImportFragment : Fragment() {
return return
} }
if (progressDialog.isShowing && !activity.isDestroyed) { if (progressDialog.isShowing && !activity.isDestroyed && !activity.isFinishing) {
progressDialog.dismiss() progressDialog.dismiss()
} }
onImportResult(result) onImportResult(result)