Fix possible crash

This commit is contained in:
iKirby
2024-11-27 10:40:34 +08:00
committed by GitHub
parent c2f2b977a2
commit 75ed407a25

View File

@@ -120,10 +120,12 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
} }
} }
}.onFailure { }.onFailure {
withContext(Dispatchers.Main) {
activity?.errorDialogBuilder(it)?.show() activity?.errorDialogBuilder(it)?.show()
} }
} }
} }
}
private fun loopShowDeprecatedNotes(notes: DeprecatedNoteIterator) { private fun loopShowDeprecatedNotes(notes: DeprecatedNoteIterator) {
if (notes.hasNext()) { if (notes.hasNext()) {