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

pull/28/head
geeksville 2020-05-03 17:58:11 -07:00
rodzic ee34a7a370
commit 913a0b56fd
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

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