don't show progress animation once we have a node listed, re #25

This commit is contained in:
geeksville 2020-05-03 17:58:11 -07:00
parent ee34a7a370
commit 913a0b56fd

View file

@ -360,8 +360,11 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
b.isChecked = device.macAddress == scanModel.selectedMacAddr
deviceRadioGroup.addView(b)
// Once we have at least one device, don't show the "looking for" animation - it makes uers think
// something is busted
scanProgressBar.visibility = View.INVISIBLE
b.setOnClickListener {
scanProgressBar.visibility = View.INVISIBLE
if (!device.bonded) // If user just clicked on us, try to bond
scanStatusText.setText(R.string.starting_pairing)