From 7d1866c3041b3687656c3223d46fbf2e7c02d8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Borcz?= Date: Wed, 9 Jan 2019 17:29:55 +0100 Subject: [PATCH] Fix NPE on error dialog (#212) --- app/src/main/java/io/github/wulkanowy/ui/base/BaseFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/wulkanowy/ui/base/BaseFragment.kt b/app/src/main/java/io/github/wulkanowy/ui/base/BaseFragment.kt index 667b46ff..6e863c51 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/base/BaseFragment.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/base/BaseFragment.kt @@ -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() } }