fix NPE
This commit is contained in:
parent
0433953ff6
commit
6f9aec95e5
1 changed files with 3 additions and 3 deletions
|
@ -107,10 +107,10 @@ class DanaRFragment : Fragment() {
|
||||||
c.sStatus == EventPumpStatusChanged.DISCONNECTED -> danar_btconnection?.text = "{fa-bluetooth-b}"
|
c.sStatus == EventPumpStatusChanged.DISCONNECTED -> danar_btconnection?.text = "{fa-bluetooth-b}"
|
||||||
}
|
}
|
||||||
if (c.textStatus() != "") {
|
if (c.textStatus() != "") {
|
||||||
dana_pumpstatus.text = c.textStatus()
|
dana_pumpstatus?.text = c.textStatus()
|
||||||
dana_pumpstatuslayout.visibility = View.VISIBLE
|
dana_pumpstatuslayout?.visibility = View.VISIBLE
|
||||||
} else {
|
} else {
|
||||||
dana_pumpstatuslayout.visibility = View.GONE
|
dana_pumpstatuslayout?.visibility = View.GONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue