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
ea460ea5d1
commit
77d3e361cd
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,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