diff --git a/app/src/full/java/com/celzero/bravedns/ui/activity/DnsListActivity.kt b/app/src/full/java/com/celzero/bravedns/ui/activity/DnsListActivity.kt index 06332f7b8..4296c353e 100644 --- a/app/src/full/java/com/celzero/bravedns/ui/activity/DnsListActivity.kt +++ b/app/src/full/java/com/celzero/bravedns/ui/activity/DnsListActivity.kt @@ -49,7 +49,7 @@ class DnsListActivity : AppCompatActivity(R.layout.activity_other_dns_list) { when (appConfig.getDnsType()) { AppConfig.DnsType.DOH -> { - b.dnsCryptText.setTextColor(fetchColor(this, R.attr.secondaryTextColor)) + b.dohText.setTextColor(fetchColor(this, R.attr.secondaryTextColor)) } AppConfig.DnsType.DNS_PROXY -> { b.dnsProxyText.setTextColor(fetchColor(this, R.attr.secondaryTextColor)) diff --git a/app/src/full/java/com/celzero/bravedns/ui/fragment/ODoHListFragment.kt b/app/src/full/java/com/celzero/bravedns/ui/fragment/ODoHListFragment.kt index ee2fc4df5..bf3fda08e 100644 --- a/app/src/full/java/com/celzero/bravedns/ui/fragment/ODoHListFragment.kt +++ b/app/src/full/java/com/celzero/bravedns/ui/fragment/ODoHListFragment.kt @@ -120,8 +120,8 @@ class ODoHListFragment : Fragment(R.layout.fragment_odoh_list) { val resolver = customResolver.text.toString() val name = customName.text.toString() - // check both proxy and resolver are valid URLs - if (checkUrl(proxy) && checkUrl(resolver)) { + // check if the url is valid for resolver, proxy is optional + if (checkUrl(resolver)) { insert(name, proxy, resolver) dialog.dismiss() } else { diff --git a/app/src/main/res/layout/activity_other_dns_list.xml b/app/src/main/res/layout/activity_other_dns_list.xml index 461595f20..a5cf3b37b 100644 --- a/app/src/main/res/layout/activity_other_dns_list.xml +++ b/app/src/main/res/layout/activity_other_dns_list.xml @@ -125,7 +125,7 @@ android:layout_height="wrap_content" android:layout_marginStart="15dp" android:padding="20dp" - android:text="@string/lbl_dot" + android:text="@string/lbl_odoh" android:textColor="?attr/primaryTextColor" android:textSize="16sp" app:drawableEndCompat="@drawable/ic_right_arrow_white" />