From 979275f9ce77046926701d13ac760f629405f85d Mon Sep 17 00:00:00 2001 From: hussainmohd-a Date: Wed, 20 Sep 2023 16:33:55 +0530 Subject: [PATCH] odoh minor ui fix --- .../java/com/celzero/bravedns/ui/activity/DnsListActivity.kt | 2 +- .../java/com/celzero/bravedns/ui/fragment/ODoHListFragment.kt | 4 ++-- app/src/main/res/layout/activity_other_dns_list.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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" />