1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 02:09:09 -05:00

Fix NPE on error dialog (#212)

This commit is contained in:
Rafał Borcz 2019-01-09 17:29:55 +01:00 committed by Mikołaj Pich
parent d2a736295a
commit 7d1866c304

View File

@ -13,7 +13,7 @@ abstract class BaseFragment : DaggerFragment(), BaseView {
if (messageContainer == null) (activity as? BaseActivity)?.showError(text, error)
else messageContainer?.also {
Snackbar.make(it, text, Snackbar.LENGTH_LONG).setAction(R.string.all_details) {
ErrorDialog.newInstance(error).show(fragmentManager, error.toString())
ErrorDialog.newInstance(error).show(childFragmentManager, error.toString())
}.show()
}
}