Use peer count to track enabled/connected, remove unused submodule

This commit is contained in:
Neil Alexander 2024-05-31 23:32:03 +01:00
parent d1ebc977fd
commit ca45b37baa
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 5 additions and 9 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "libs/yggdrasil-go"]
path = libs/yggdrasil-go
url = https://github.com/yggdrasil-network/yggdrasil-go

View file

@ -155,11 +155,11 @@ class MainActivity : AppCompatActivity() {
"state" -> { "state" -> {
enabledLabel.text = if (intent.getBooleanExtra("started", false)) { enabledLabel.text = if (intent.getBooleanExtra("started", false)) {
var count = 0 var count = 0
if (intent.hasExtra("tree")) { if (intent.hasExtra("peers")) {
val tree = intent.getStringExtra("tree") val peers = intent.getStringExtra("peers")
if (tree != null && tree != "null") { if (peers != null && peers != "null") {
val treeState = JSONArray(tree) val peerState = JSONArray(peers)
count = treeState.length() count = peerState.length()
} }
} }
if (count == 0) { if (count == 0) {

@ -1 +0,0 @@
Subproject commit 6b6cd0bed553ada887632524994e4de4e839688e