This commit is contained in:
level 2025-07-17 12:26:56 +08:00
parent dce52cd52c
commit ae1e837055
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,8 @@ import com.yingmao.clash.conf.Conf
import com.yingmao.clash.entity.CheckLoginRsp
import com.yingmao.clash.entity.LanguageInfoEntity
import com.yingmao.clash.fragment.BaseFragment
import com.yingmao.clash.fragment.NewAccFragment
import com.yingmao.clash.fragment.NewAccFragment.Companion
import com.yingmao.clash.fragment.home.HomeFragment
import com.yingmao.clash.fragment.home.HomeFragment.Companion.clashRunning
import com.yingmao.clash.net.http.HttpReqType
@ -333,6 +335,10 @@ class SettingFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatc
RxToast.info(resources.getString(R.string.AccountExpired))
return@setOnClickListener
}
if(NewAccFragment.clashRunning){
RxToast.info("请关闭加速后在进行初始化操作")
return@setOnClickListener
}
if (TextUtils.isEmpty(subUrl)) {
RxToast.success(resources.getString(R.string.tooFast))
return@setOnClickListener