Overview: display smoothed value
This commit is contained in:
parent
4dde47bc44
commit
90251178a9
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
val lastBgDescription = overviewData.lastBgDescription(iobCobCalculator.ads)
|
val lastBgDescription = overviewData.lastBgDescription(iobCobCalculator.ads)
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
_binding ?: return@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)
|
binding.infoLayout.bg.setTextColor(lastBgColor)
|
||||||
trendArrow?.let { binding.infoLayout.arrow.setImageResource(it.directionToIcon()) }
|
trendArrow?.let { binding.infoLayout.arrow.setImageResource(it.directionToIcon()) }
|
||||||
binding.infoLayout.arrow.visibility = (trendArrow != null).toVisibilityKeepSpace()
|
binding.infoLayout.arrow.visibility = (trendArrow != null).toVisibilityKeepSpace()
|
||||||
|
|
Loading…
Reference in a new issue