mirror of
https://github.com/SagerNet/sing-box-for-android.git
synced 2025-04-03 20:07:38 +03:00
Fix possible crash
This commit is contained in:
parent
c2f2b977a2
commit
75ed407a25
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
|
|||
}
|
||||
}
|
||||
}.onFailure {
|
||||
activity?.errorDialogBuilder(it)?.show()
|
||||
withContext(Dispatchers.Main) {
|
||||
activity?.errorDialogBuilder(it)?.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue