From b6e73dd9a86e761c4363896e8f226a7df261a81a Mon Sep 17 00:00:00 2001 From: Philoul Date: Tue, 5 Sep 2023 18:39:30 +0200 Subject: [PATCH] Wear CWF Update dayName and Month on CWF Load --- .../info/nightscout/androidaps/watchfaces/CustomWatchface.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt index dc4ae1ddfa..4aab760bc1 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt @@ -164,6 +164,8 @@ class CustomWatchface : BaseWatchFace() { .takeIf { it.matches(Regex("E{1,4}")) } ?: "E" monthFormat = json.optString(MONTHFORMAT.key, "MMM") .takeIf { it.matches(Regex("M{1,4}")) } ?: "MMM" + binding.dayName.text = dateUtil.dayNameString(dayNameFormat) // Update daynName and month according to format on cwf loading + binding.month.text = dateUtil.monthString(monthFormat) bgColor = when (singleBg.sgvLevel) { 1L -> highColor 0L -> midColor