From 6ee736cf56becabd6b6a2f632c8061b35aa39589 Mon Sep 17 00:00:00 2001 From: vadym Date: Sun, 28 Jun 2020 10:44:06 -0700 Subject: [PATCH] 1. allow empty peer list for WiFi Direct mode --- .../main/java/io/github/chronosx88/yggdrasil/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 67f7a1a..c7c412b 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -224,10 +224,11 @@ class MainActivity : AppCompatActivity() { super.onActivityResult(requestCode, resultCode, data) if (requestCode == VPN_REQUEST_CODE && resultCode== Activity.RESULT_OK){ + /* if(currentPeers.isEmpty()){ showToast("No peers selected!") return - } + }*/ val intent = Intent(this, YggdrasilTunService::class.java) val TASK_CODE = 100 val pi = createPendingResult(TASK_CODE, intent, 0)