display disconnected status
This commit is contained in:
parent
12fc4175dc
commit
b84f68c934
1 changed files with 6 additions and 1 deletions
|
@ -243,7 +243,12 @@ class OmnipodDashOverviewFragment : DaggerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateBluetoothConnectionStatus(event: EventPumpStatusChanged) {
|
private fun updateBluetoothConnectionStatus(event: EventPumpStatusChanged) {
|
||||||
bluetoothStatusBinding.omnipodDashBluetoothStatus.text = event.getStatus(resourceHelper)
|
var status = event.getStatus(resourceHelper)
|
||||||
|
if (status.isEmpty()) {
|
||||||
|
status = resourceHelper.gs(R.string.disconnected)
|
||||||
|
}
|
||||||
|
bluetoothStatusBinding.omnipodDashBluetoothStatus.text = status
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateBluetoothStatus() {
|
private fun updateBluetoothStatus() {
|
||||||
|
|
Loading…
Reference in a new issue