mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 11:03:55 +00:00
fix: keep ui on the main thread
This commit is contained in:
@@ -191,10 +191,12 @@ class ExtensionTestItem(
|
||||
done()
|
||||
}
|
||||
|
||||
private fun done() {
|
||||
private suspend fun done() {
|
||||
if (::binding.isInitialized.not()) return
|
||||
binding.extensionLoading.isVisible = false
|
||||
isRunning = false
|
||||
withContext(Dispatchers.Main) {
|
||||
binding.extensionLoading.isVisible = false
|
||||
isRunning = false
|
||||
}
|
||||
}
|
||||
|
||||
private fun pingResult() {
|
||||
|
||||
Reference in New Issue
Block a user