From 0845f082b9c06cb909a896c30df8584e905e2ce7 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Mon, 30 Oct 2023 23:31:40 +0100 Subject: [PATCH] Like in overview tab: Show smoothed bg value --- ui/src/main/kotlin/app/aaps/ui/widget/Widget.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/main/kotlin/app/aaps/ui/widget/Widget.kt b/ui/src/main/kotlin/app/aaps/ui/widget/Widget.kt index 0b3dfd892d..7da495f72b 100644 --- a/ui/src/main/kotlin/app/aaps/ui/widget/Widget.kt +++ b/ui/src/main/kotlin/app/aaps/ui/widget/Widget.kt @@ -132,7 +132,7 @@ class Widget : AppWidgetProvider() { private fun updateBg(views: RemoteViews) { views.setTextViewText( R.id.bg, - overviewData.lastBg(iobCobCalculator.ads)?.let { profileUtil.fromMgdlToStringInUnits(it.value) } ?: rh.gs(app.aaps.core.ui.R.string.value_unavailable_short)) + overviewData.lastBg(iobCobCalculator.ads)?.let { profileUtil.fromMgdlToStringInUnits(it.recalculated) } ?: rh.gs(app.aaps.core.ui.R.string.value_unavailable_short)) views.setTextColor( R.id.bg, when { overviewData.isLow(iobCobCalculator.ads) -> rh.gc(app.aaps.core.ui.R.color.widget_low) @@ -285,4 +285,4 @@ class Widget : AppWidgetProvider() { } else views.setViewVisibility(R.id.variable_sensitivity, View.GONE) } else views.setViewVisibility(R.id.variable_sensitivity, View.GONE) } -} \ No newline at end of file +}