Skip to content

Commit

Permalink
odoh minor ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainmohd-a committed Sep 20, 2023
1 parent be0d22b commit 979275f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_other_dns_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 979275f

Please sign in to comment.