From 7ef313e4aa22acd10571842f1dcfe36400c34fc7 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 9 May 2022 19:10:14 +0200 Subject: [PATCH] Wear: fix iob display --- .../info/nightscout/androidaps/watchfaces/BaseWatchFace.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.kt b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.kt index 899741a872..c32cb1397b 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.kt +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.kt @@ -446,8 +446,8 @@ abstract class BaseWatchFace : WatchFace() { mCOB2?.visibility = sp.getBoolean(R.string.key_show_cob, true).toVisibility() mIOB1?.visibility = sp.getBoolean(R.string.key_show_iob, true).toVisibility() mIOB2?.visibility = sp.getBoolean(R.string.key_show_iob, true).toVisibility() - mIOB1?.text = if (sp.getBoolean(R.string.key_show_iob, true)) status.iobSum else getString(R.string.activity_IOB) - mIOB2?.text = if (sp.getBoolean(R.string.key_show_iob, true)) status.iobDetail else status.iobSum + mIOB1?.text = if (status.detailedIob) status.iobSum else getString(R.string.activity_IOB) + mIOB2?.text = if (status.detailedIob) status.iobDetail else status.iobSum mTimestamp?.visibility = sp.getBoolean(R.string.key_show_ago, true).toVisibility() mTimestamp?.text = readingAge(if (isAAPSv2 != null) true else sp.getBoolean(R.string.key_show_external_status, true)) mUploaderBattery?.visibility = sp.getBoolean(R.string.key_show_uploader_battery, true).toVisibility()