一键连

1.全局模式时候在不加速的时候可以选择节点
This commit is contained in:
level 2025-12-10 18:17:29 +08:00
parent c431c95516
commit 12760fb010
5 changed files with 11 additions and 10 deletions

View File

@ -233,11 +233,14 @@ open class HomeFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispa
RxToast.info(resources.getString(R.string.AccountExpired))
return@setOnClickListener
}
val getIsGlo= MMKV.defaultMMKV().decodeBool(BZYConstants.MMKV_KEY_GLOBAL_MODEL, false)
if(getIsGlo){
RxToast.info(resources.getString(R.string.GolbalModeNoChoose))
return@setOnClickListener
if(clashRunning){
val getIsGlo= MMKV.defaultMMKV().decodeBool(BZYConstants.MMKV_KEY_GLOBAL_MODEL, false)
if(getIsGlo){
RxToast.info(resources.getString(R.string.GolbalModeNoChoose))
return@setOnClickListener
}
}
val intent = Intent(CommonUtils.getApp(), NodeGroupActivity::class.java)
if (!TextUtils.isEmpty(newUuid)) {
intent.putExtra(BZYConstants.MMKV_KEY_CURRENT_NODE, newUuid)

View File

@ -422,8 +422,6 @@ In order to implement and strengthen awareness of personal information security
<string name="MembershipValidityPeriod">Membership Validity Period:</string>
<string name="Gift">Gift</string>
<string name="closeRunningChoose">Please disconnect and switch modes</string>
<string name="OpenSwitchingSourceModel">Please enable acceleration before switching to global mode</string>
<string name="GolbalModeNoChoose">Switching nodes is not currently supported in global mode. Please switch to smart mode!</string>
<string name="GolbalModeNoChoose">Switching nodes is not currently supported in global acceleration mode. Please switch to smart mode!</string>
</resources>

View File

@ -415,5 +415,5 @@
<string name="Gift">禮品</string>
<string name="closeRunningChoose">請斷開連線後在進行模式切換</string>
<string name="OpenSwitchingSourceModel">請開啟加速後在進行全域模式切換</string>
<string name="GolbalModeNoChoose">全域模式下暫不支援切換節點,請切換至智慧模式!</string>
<string name="GolbalModeNoChoose">全域模式加速下暫不支援切換節點,請切換至智慧模式!</string>
</resources>

View File

@ -413,5 +413,5 @@
<string name="Gift">禮品</string>
<string name="closeRunningChoose">請斷開連線後在進行模式切換</string>
<string name="OpenSwitchingSourceModel">請開啟加速後在進行全域模式切換</string>
<string name="GolbalModeNoChoose">全域模式下暫不支援切換節點,請切換至智慧模式!</string>
<string name="GolbalModeNoChoose">全域模式加速下暫不支援切換節點,請切換至智慧模式!</string>
</resources>

View File

@ -480,5 +480,5 @@
您可以获得30天会员仅限新用户订购有效</string>
<string name="LinkSharetxt">点击分享</string>
<string name="OpenSwitchingSourceModel">请开启加速后在进行全局模式切换</string>
<string name="GolbalModeNoChoose">全局模式下暂不支持切换节点,请切换至智能模式!</string>
<string name="GolbalModeNoChoose">全局模式加速下暂不支持切换节点,请切换至智能模式!</string>
</resources>