From b84f68c934620aa20de905e9c92e656f6863e211 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Tue, 21 Sep 2021 21:37:04 +0200 Subject: [PATCH] display disconnected status --- .../pump/omnipod/dash/ui/OmnipodDashOverviewFragment.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/OmnipodDashOverviewFragment.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/OmnipodDashOverviewFragment.kt index 371df19101..dfdc2410c9 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/OmnipodDashOverviewFragment.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/OmnipodDashOverviewFragment.kt @@ -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() {