1. no peers fix

This commit is contained in:
vadym 2020-06-29 21:48:56 -07:00
parent c5b5a0fa24
commit aaf6dc41c8

View File

@ -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