mirror of
https://github.com/etesync/android
synced 2024-12-23 07:08:16 +00:00
Migration: fix crash after the end of migration.
This commit is contained in:
parent
f7314a5cca
commit
3a96e16af3
@ -724,17 +724,17 @@ class MigrateCollectionsDoFragment(private val etebase: EtebaseAccount,
|
||||
.setMessage(message)
|
||||
.setPositiveButton(android.R.string.yes) { _, _ -> }
|
||||
.setOnDismissListener {
|
||||
requireFragmentManager().beginTransaction()
|
||||
.replace(android.R.id.content, CreateAccountFragment.newInstance(configurationModel.account.value!!))
|
||||
.addToBackStack(null)
|
||||
.commitAllowingStateLoss()
|
||||
requireFragmentManager().commit {
|
||||
replace(android.R.id.content, CreateAccountFragment.newInstance(configurationModel.account.value!!))
|
||||
addToBackStack(null)
|
||||
}
|
||||
dismissAllowingStateLoss()
|
||||
}
|
||||
.show()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
uiThread { reportErrorHelper(requireContext(), e) }
|
||||
} finally {
|
||||
uiThread {
|
||||
reportErrorHelper(requireContext(), e)
|
||||
dismissAllowingStateLoss()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user