1
0
mirror of https://github.com/etesync/android synced 2024-11-22 16:08:13 +00:00

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

This commit is contained in:
Tom Hacohen 2019-04-04 13:47:34 +01:00
parent f41c7cd4c9
commit 7010967a31

View File

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