From 2ea5ecf165ec30676080180185631b26478c70b0 Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 22 Jun 2020 02:13:18 -0700 Subject: [PATCH] 1. prevent peer edit if service is started --- .../io/github/chronosx88/yggdrasil/MainActivity.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index ff8d902..5651a7f 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -15,7 +15,6 @@ import androidx.preference.PreferenceManager import com.google.gson.Gson import io.github.chronosx88.yggdrasil.models.PeerInfo import io.github.chronosx88.yggdrasil.models.config.PeerInfoListAdapter -import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashSet @@ -87,6 +86,10 @@ class MainActivity : AppCompatActivity() { listView.adapter = adapter val editPeersButton = findViewById