From e47dca02cffcf6c5afa3d33332b74b18089fd64c Mon Sep 17 00:00:00 2001 From: Steve Johnson Date: Thu, 2 Nov 2023 17:08:00 +0800 Subject: [PATCH] fix: remove duplicated DNS settings in meta-feature --- .../clash/design/MetaFeatureSettingsDesign.kt | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/design/src/main/java/com/github/kr328/clash/design/MetaFeatureSettingsDesign.kt b/design/src/main/java/com/github/kr328/clash/design/MetaFeatureSettingsDesign.kt index 87f675fd..e5c4704a 100644 --- a/design/src/main/java/com/github/kr328/clash/design/MetaFeatureSettingsDesign.kt +++ b/design/src/main/java/com/github/kr328/clash/design/MetaFeatureSettingsDesign.kt @@ -105,47 +105,6 @@ class MetaFeatureSettingsDesign( } - category(R.string.dns) - - val dnsDependencies: MutableList = mutableListOf() - - val dns = selectableList( - value = configuration.dns::enable, - values = arrayOf( - null, - true, - false - ), - valuesText = arrayOf( - R.string.dont_modify, - R.string.force_enable, - R.string.use_built_in, - ), - title = R.string.strategy - ) { - listener = OnChangedListener { - if (configuration.dns.enable == false) { - dnsDependencies.forEach { - it.enabled = false - } - } else { - dnsDependencies.forEach { - it.enabled = true - } - } - } - } - - selectableList( - value = configuration.dns::preferH3, - values = booleanValues, - valuesText = booleanValuesText, - title = R.string.prefer_h3, - configure = dnsDependencies::add, - ) - - dns.listener?.onChanged() - category(R.string.sniffer_setting) val snifferDependencies: MutableList = mutableListOf()