bug fix :vpn初始化关闭之后未正常关闭dialog
This commit is contained in:
parent
ae1e837055
commit
662bfcb252
|
|
@ -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()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue