Fix possible crash

This commit is contained in:
iKirby authored and GitHub committed 2024-11-27 10:40:34 +08:00
1 parent c2f2b977a2
commit 75ed407a25
1 file changed
+3 -1
@@ -120,7 +120,9 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
}
}
}.onFailure {
activity?.errorDialogBuilder(it)?.show()
withContext(Dispatchers.Main) {
activity?.errorDialogBuilder(it)?.show()
}
}
}
}