mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 07:56:30 +00:00
1. fixed dynamic peers list crash
This commit is contained in:
parent
9306593012
commit
04f2537145
@ -71,10 +71,10 @@ class DNSListActivity : AppCompatActivity() {
|
||||
}
|
||||
var ping = ping(dns.address, 53)
|
||||
dns.ping = ping
|
||||
adapter.addItem(dns)
|
||||
runOnUiThread(
|
||||
Runnable
|
||||
{
|
||||
adapter.addItem(dns)
|
||||
adapter.sort()
|
||||
isLoading = false
|
||||
}
|
||||
|
@ -93,9 +93,9 @@ class PeerListActivity : AppCompatActivity() {
|
||||
}
|
||||
var ping = ping(address, url.port)
|
||||
peerInfo.ping = ping
|
||||
withContext(Dispatchers.Main) {
|
||||
adapter.addItem(peerInfo)
|
||||
if(adapter.count % 5 == 0) {
|
||||
withContext(Dispatchers.Main) {
|
||||
adapter.sort()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user