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()