1
0
mirror of https://github.com/etesync/android synced 2024-12-22 22:58:29 +00:00

Migration: fix crash after the end of migration.

This commit is contained in:
Tom Hacohen 2020-10-20 13:25:07 +03:00
parent f7314a5cca
commit 3a96e16af3

View File

@ -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()
}
}