This commit is contained in:
Milos Kozak 2019-08-28 13:55:51 +02:00
parent 0433953ff6
commit 6f9aec95e5

View file

@ -107,10 +107,10 @@ class DanaRFragment : Fragment() {
c.sStatus == EventPumpStatusChanged.DISCONNECTED -> danar_btconnection?.text = "{fa-bluetooth-b}"
}
if (c.textStatus() != "") {
dana_pumpstatus.text = c.textStatus()
dana_pumpstatuslayout.visibility = View.VISIBLE
dana_pumpstatus?.text = c.textStatus()
dana_pumpstatuslayout?.visibility = View.VISIBLE
} else {
dana_pumpstatuslayout.visibility = View.GONE
dana_pumpstatuslayout?.visibility = View.GONE
}
}