From 50a107cea4df03773bc5f5b666ebdce52b7ebbeb Mon Sep 17 00:00:00 2001 From: vadym Date: Sat, 27 Jun 2020 14:58:44 -0700 Subject: [PATCH] 1. DNS refresh fix --- app/src/main/AndroidManifest.xml | 1 - .../chronosx88/yggdrasil/DNSListActivity.kt | 6 ++++++ .../chronosx88/yggdrasil/MainActivity.kt | 16 +++++++++++--- .../chronosx88/yggdrasil/PeerListActivity.kt | 7 +++++++ .../config/SelectPeerInfoListAdapter.kt | 21 ++++++++++++------- 5 files changed, 40 insertions(+), 11 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9ddd242..418949e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -35,7 +35,6 @@ 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 3b6ec83..f7499cd 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt @@ -42,6 +42,8 @@ class DNSListActivity : AppCompatActivity() { ) } + var isLoading = true; + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_dns_list) @@ -74,6 +76,7 @@ class DNSListActivity : AppCompatActivity() { Runnable { adapter.sort() + isLoading = false } ) } @@ -91,6 +94,9 @@ class DNSListActivity : AppCompatActivity() { val saveButton = item .actionView.findViewById