mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 07:56:30 +00:00
1. allow empty peer list for WiFi Direct mode
This commit is contained in:
parent
b09f180020
commit
6ee736cf56
@ -224,10 +224,11 @@ class MainActivity : AppCompatActivity() {
|
|||||||
super.onActivityResult(requestCode, resultCode, data)
|
super.onActivityResult(requestCode, resultCode, data)
|
||||||
|
|
||||||
if (requestCode == VPN_REQUEST_CODE && resultCode== Activity.RESULT_OK){
|
if (requestCode == VPN_REQUEST_CODE && resultCode== Activity.RESULT_OK){
|
||||||
|
/*
|
||||||
if(currentPeers.isEmpty()){
|
if(currentPeers.isEmpty()){
|
||||||
showToast("No peers selected!")
|
showToast("No peers selected!")
|
||||||
return
|
return
|
||||||
}
|
}*/
|
||||||
val intent = Intent(this, YggdrasilTunService::class.java)
|
val intent = Intent(this, YggdrasilTunService::class.java)
|
||||||
val TASK_CODE = 100
|
val TASK_CODE = 100
|
||||||
val pi = createPendingResult(TASK_CODE, intent, 0)
|
val pi = createPendingResult(TASK_CODE, intent, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user