mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +00:00
1. remove checkmarks fix
This commit is contained in:
parent
fd8742f513
commit
0c5a3b0f82
@ -57,15 +57,13 @@ class SelectPeerInfoListAdapter(
|
||||
peerInfoHolder.peerInfoText.setTextColor(Color.WHITE)
|
||||
}
|
||||
peerInfoHolder.checkbox.setOnCheckedChangeListener { _, isChecked ->
|
||||
if(!isLoading) {
|
||||
if (isChecked) {
|
||||
if (!currentPeers.contains(currentPeer)) {
|
||||
currentPeers.add(currentPeer)
|
||||
}
|
||||
} else {
|
||||
if (currentPeers.contains(currentPeer)) {
|
||||
currentPeers.remove(currentPeer)
|
||||
}
|
||||
if (isChecked) {
|
||||
if (!currentPeers.contains(currentPeer)) {
|
||||
currentPeers.add(currentPeer)
|
||||
}
|
||||
} else {
|
||||
if (currentPeers.contains(currentPeer)) {
|
||||
currentPeers.remove(currentPeer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user