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

This commit is contained in:
level 2025-07-18 15:50:39 +08:00
parent 7a4cdff588
commit e5e467f981
1 changed files with 3 additions and 2 deletions

View File

@ -254,7 +254,6 @@ class NewAccFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatch
clickOnLink.setBackgroundResource(R.drawable.home_circle_select)
InTheLink.setImageResource(R.mipmap.ic_click)
ClickTheLink.text=resources.getString(R.string.CloseConnection)
hideLoading()
}
accelerateViewModel.appStartupStatus()
}
@ -264,7 +263,6 @@ class NewAccFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatch
clickOnLink.setBackgroundResource(R.drawable.home_circle_connecting)
InTheLink.setImageResource(R.mipmap.ic_click)
ClickTheLink.text=resources.getString(R.string.CloseConnection)
hideLoading()
}
accelerateViewModel.appStartupStatus()
@ -274,6 +272,9 @@ class NewAccFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatch
stop_u_timer()
e.printStackTrace()
}
withContext(Dispatchers.Main){
hideLoading()
}
}
}