Show '-' instead of nothing in Omnipod tab when no TBR is active

This commit is contained in:
Bart Sopers 2020-08-21 21:22:55 +02:00
parent 127a369cbb
commit bdccbf907e

View file

@ -298,7 +298,7 @@ class OmnipodFragment : DaggerFragment() {
omnipod_basabasalrate.text = resourceHelper.gs(R.string.pump_basebasalrate, omnipodPumpPlugin.pumpType.determineCorrectBasalSize(omnipodPumpPlugin.baseBasalRate)) omnipod_basabasalrate.text = resourceHelper.gs(R.string.pump_basebasalrate, omnipodPumpPlugin.pumpType.determineCorrectBasalSize(omnipodPumpPlugin.baseBasalRate))
omnipod_tempbasal.text = activePlugin.activeTreatments omnipod_tempbasal.text = activePlugin.activeTreatments
.getTempBasalFromHistory(System.currentTimeMillis())?.toStringFull() ?: "" .getTempBasalFromHistory(System.currentTimeMillis())?.toStringFull() ?: "-"
// reservoir // reservoir
if (podStateManager.reservoirLevel == null) { if (podStateManager.reservoirLevel == null) {