diff --git a/app/src/main/java/io/nekohasekai/sfa/ui/main/DashboardFragment.kt b/app/src/main/java/io/nekohasekai/sfa/ui/main/DashboardFragment.kt index 8dde378..7258678 100644 --- a/app/src/main/java/io/nekohasekai/sfa/ui/main/DashboardFragment.kt +++ b/app/src/main/java/io/nekohasekai/sfa/ui/main/DashboardFragment.kt @@ -120,7 +120,9 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) { } } }.onFailure { - activity?.errorDialogBuilder(it)?.show() + withContext(Dispatchers.Main) { + activity?.errorDialogBuilder(it)?.show() + } } } }