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:
parent
4fa4fb0dfe
commit
6d5136fbbb
@ -192,7 +192,7 @@ class LocalCalendarImportFragment : ListFragment() {
|
||||
return
|
||||
}
|
||||
|
||||
if (progressDialog.isShowing && !activity.isDestroyed) {
|
||||
if (progressDialog.isShowing && !activity.isDestroyed && !activity.isFinishing) {
|
||||
progressDialog.dismiss()
|
||||
}
|
||||
onImportResult(result)
|
||||
|
@ -127,7 +127,7 @@ class LocalContactImportFragment : Fragment() {
|
||||
return
|
||||
}
|
||||
|
||||
if (progressDialog.isShowing && !activity.isDestroyed) {
|
||||
if (progressDialog.isShowing && !activity.isDestroyed && !activity.isFinishing) {
|
||||
progressDialog.dismiss()
|
||||
}
|
||||
onImportResult(result)
|
||||
|
Loading…
Reference in New Issue
Block a user