Import: fix crash when import finishes while the activity is dead.

pull/96/head
Tom Hacohen 5 years ago
parent f41c7cd4c9
commit 7010967a31

@ -85,7 +85,9 @@ class ImportActivity : BaseActivity(), SelectImportMethod, ResultFragment.OnImpo
override fun onImportResult(importResult: ResultFragment.ImportResult) {
val fragment = ResultFragment.newInstance(importResult)
fragment.show(supportFragmentManager, "importResult")
supportFragmentManager.beginTransaction()
.add(fragment, "importResult")
.commitAllowingStateLoss()
}
override fun cancel() {

Loading…
Cancel
Save