mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +00:00
1. final commit iteration 3. small fixes
This commit is contained in:
parent
be549f8421
commit
2a5c6b66e2
@ -38,6 +38,16 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
task ndkBuild(type: Exec) {
|
||||
def rootDir = project.rootDir
|
||||
workingDir = new File(rootDir,"yggdrasil")
|
||||
commandLine 'make'
|
||||
}
|
||||
|
||||
gradle.projectsEvaluated {
|
||||
tasks.compileDebugKotlin.dependsOn(ndkBuild)
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
|
@ -41,11 +41,11 @@ class SelectPeerInfoListAdapter(
|
||||
peerInfoHolder.countryFlag.setImageResource(currentPeer.getCountry(mContext)!!.flagID)
|
||||
val peerId = currentPeer.toString()
|
||||
if(currentPeer.ping == Int.MAX_VALUE){
|
||||
peerInfoHolder.peerInfoText.text = "$peerId"
|
||||
peerInfoHolder.peerInfoText.text = peerId
|
||||
peerInfoHolder.ping.text=""
|
||||
peerInfoHolder.peerInfoText.setTextColor(Color.GRAY)
|
||||
} else {
|
||||
peerInfoHolder.peerInfoText.text = "$peerId" //peerId + " " + currentPeer.ping + " ms"
|
||||
peerInfoHolder.peerInfoText.text = peerId
|
||||
peerInfoHolder.ping.text = currentPeer.ping.toString() + " ms"
|
||||
peerInfoHolder.peerInfoText.setTextColor(Color.WHITE)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user