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" -> {
|
||||
enabledLabel.text = if (intent.getBooleanExtra("started", false)) {
|
||||
var count = 0
|
||||
if (intent.hasExtra("tree")) {
|
||||
val tree = intent.getStringExtra("tree")
|
||||
if (tree != null && tree != "null") {
|
||||
val treeState = JSONArray(tree)
|
||||
count = treeState.length()
|
||||
if (intent.hasExtra("peers")) {
|
||||
val peers = intent.getStringExtra("peers")
|
||||
if (peers != null && peers != "null") {
|
||||
val peerState = JSONArray(peers)
|
||||
count = peerState.length()
|
||||
}
|
||||
}
|
||||
if (count == 0) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 6b6cd0bed553ada887632524994e4de4e839688e
|
Loading…
Add table
Add a link
Reference in a new issue