mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-13 22:11:03 +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.isChecked = isStarted
|
||||||
|
|
||||||
switchOn.setOnCheckedChangeListener { _, isChecked ->
|
switchOn.setOnCheckedChangeListener { _, isChecked ->
|
||||||
if(currentPeers.isEmpty()){
|
|
||||||
switchOn.isChecked = false
|
|
||||||
return@setOnCheckedChangeListener
|
|
||||||
}
|
|
||||||
if(isCancelled){
|
if(isCancelled){
|
||||||
switchOn.isChecked = false
|
switchOn.isChecked = false
|
||||||
isCancelled = false
|
isCancelled = false
|
||||||
|
Loading…
Reference in New Issue
Block a user