mirror of
https://github.com/etesync/android
synced 2024-11-26 01:48:34 +00:00
Import: fix crash when import finishes while the activity is dead.
This commit is contained in:
parent
f41c7cd4c9
commit
7010967a31
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user