display disconnected status

This commit is contained in:
Andrei Vereha 2021-09-21 21:37:04 +02:00
parent 12fc4175dc
commit b84f68c934

View file

@ -243,7 +243,12 @@ class OmnipodDashOverviewFragment : DaggerFragment() {
}
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() {