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) stateChanged(Clash_Starting, true)
context?.startClashService() context?.startClashService()
mainAtyVM.appStartupStatus() mainAtyVM.appStartupStatus()
withContext(Dispatchers.Main) {
hideLoading()
}
} }
} else { } else {
mainAtyVM.appStartupStatus() mainAtyVM.appStartupStatus()
withContext(Dispatchers.Main) {
hideLoading()
}
} }
} catch (e: Exception) { } catch (e: Exception) {
stopUpLoadTimer() stopUpLoadTimer()
e.printStackTrace() e.printStackTrace()
} }
withContext(Dispatchers.Main) {
hideLoading()
}
} }
} }