mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-19 09:17:07 -06:00
Fix NPE on error dialog (#212)
This commit is contained in:
parent
d2a736295a
commit
7d1866c304
@ -13,7 +13,7 @@ abstract class BaseFragment : DaggerFragment(), BaseView {
|
|||||||
if (messageContainer == null) (activity as? BaseActivity)?.showError(text, error)
|
if (messageContainer == null) (activity as? BaseActivity)?.showError(text, error)
|
||||||
else messageContainer?.also {
|
else messageContainer?.also {
|
||||||
Snackbar.make(it, text, Snackbar.LENGTH_LONG).setAction(R.string.all_details) {
|
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()
|
}.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user