Overview: display smoothed value

This commit is contained in:
Milos Kozak 2023-10-27 21:59:49 +02:00
parent 4dde47bc44
commit 90251178a9

View file

@ -793,7 +793,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
val lastBgDescription = overviewData.lastBgDescription(iobCobCalculator.ads)
runOnUiThread {
_binding ?: return@runOnUiThread
binding.infoLayout.bg.text = profileUtil.fromMgdlToStringInUnits(lastBg?.value)
binding.infoLayout.bg.text = profileUtil.fromMgdlToStringInUnits(lastBg?.smoothed)
binding.infoLayout.bg.setTextColor(lastBgColor)
trendArrow?.let { binding.infoLayout.arrow.setImageResource(it.directionToIcon()) }
binding.infoLayout.arrow.visibility = (trendArrow != null).toVisibilityKeepSpace()