Fix possible crash
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user