From 298bfce372a956dcbcce6c13fa6abe12d1ec2297 Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 6 Jul 2020 09:54:03 -0700 Subject: [PATCH] 3. small fixes --- .../java/io/github/chronosx88/yggdrasil/DNSListActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt index 7c1b209..270246b 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt @@ -97,8 +97,7 @@ class DNSListActivity : AppCompatActivity() { this.resources.configuration.locale.country } - var ccp = view.findViewById(R.id.ccp) - ccp.setCountryForNameCode(countryCode) + view.findViewById(R.id.ccp).setCountryForNameCode(countryCode) val ab: AlertDialog.Builder = AlertDialog.Builder(this) ab.setCancelable(true).setView(view) var ad = ab.show()