mirror of
https://github.com/yggdrasil-network/yggdrasil-android.git
synced 2025-04-27 21:55:08 +03:00
Use peer count to track enabled/connected, remove unused submodule
This commit is contained in:
parent
d1ebc977fd
commit
ca45b37baa
3 changed files with 5 additions and 9 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "libs/yggdrasil-go"]
|
|
||||||
path = libs/yggdrasil-go
|
|
||||||
url = https://github.com/yggdrasil-network/yggdrasil-go
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue