Fix groups ui

This commit is contained in:
世界
2024-04-23 13:58:17 +08:00
parent 983a771212
commit f9fcd40059
2 changed files with 22 additions and 10 deletions

View File

@@ -212,12 +212,24 @@ class GroupsFragment : Fragment(), CommandClient.Handler {
if (selected != group.selected) {
updateSelected(group, selected)
}
GlobalScope.launch {
runCatching {
Libbox.newStandaloneCommandClient()
.selectOutbound(group.tag, selected)
}.onFailure {
withContext(Dispatchers.Main) {
binding.root.context.errorDialogBuilder(it).show()
}
}
}
}
}
}
if (newExpandStatus) {
binding.urlTestButton.isVisible = true
binding.expandButton.setImageResource(R.drawable.ic_expand_less_24)
} else {
binding.urlTestButton.isVisible = false
binding.expandButton.setImageResource(R.drawable.ic_expand_more_24)
}
binding.expandButton.setOnClickListener {