bug fix :vpn初始化关闭之后未正常关闭dialog

This commit is contained in:
level 2025-07-21 11:59:10 +08:00
parent ae1e837055
commit 662bfcb252
1 changed files with 3 additions and 6 deletions

View File

@ -569,20 +569,17 @@ class HomeFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatcher
stateChanged(Clash_Starting, true)
context?.startClashService()
mainAtyVM.appStartupStatus()
withContext(Dispatchers.Main) {
hideLoading()
}
}
} else {
mainAtyVM.appStartupStatus()
withContext(Dispatchers.Main) {
hideLoading()
}
}
} catch (e: Exception) {
stopUpLoadTimer()
e.printStackTrace()
}
withContext(Dispatchers.Main) {
hideLoading()
}
}
}