mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +00:00
1. no peers fix
This commit is contained in:
parent
c5b5a0fa24
commit
aaf6dc41c8
@ -72,10 +72,6 @@ class MainActivity : AppCompatActivity() {
|
||||
switchOn.isChecked = isStarted
|
||||
|
||||
switchOn.setOnCheckedChangeListener { _, isChecked ->
|
||||
if(currentPeers.isEmpty()){
|
||||
switchOn.isChecked = false
|
||||
return@setOnCheckedChangeListener
|
||||
}
|
||||
if(isCancelled){
|
||||
switchOn.isChecked = false
|
||||
isCancelled = false
|
||||
|
Loading…
Reference in New Issue
Block a user