From 8dabfe6099e982588ed36ad41ebe6e1fc178eb7c Mon Sep 17 00:00:00 2001 From: Philoul Date: Sun, 20 Aug 2023 23:12:30 +0200 Subject: [PATCH] Wear CWF: Replace all - by _ in json keys --- .../nightscout/androidaps/watchfaces/CustomWatchface.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 4f570d11b7..132fa00d49 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt @@ -459,9 +459,9 @@ class CustomWatchface : BaseWatchFace() { } private enum class FontMap(val key: String, var font: Typeface, @FontRes val fontRessources: Int?) { - SANS_SERIF("sans-serif", Typeface.SANS_SERIF, null), + SANS_SERIF("sans_serif", Typeface.SANS_SERIF, null), DEFAULT("default", Typeface.DEFAULT, null), - DEFAULT_BOLD("default-bold", Typeface.DEFAULT_BOLD, null), + DEFAULT_BOLD("default_bold", Typeface.DEFAULT_BOLD, null), MONOSPACE("monospace", Typeface.MONOSPACE, null), SERIF("serif", Typeface.SERIF, null), ROBOTO_CONDENSED_BOLD("roboto_condensed_bold", Typeface.DEFAULT, R.font.roboto_condensed_bold), @@ -479,7 +479,7 @@ class CustomWatchface : BaseWatchFace() { private enum class StyleMap(val key: String, val style: Int) { NORMAL("normal", Typeface.NORMAL), BOLD("bold", Typeface.BOLD), - BOLD_ITALIC("bold-italic", Typeface.BOLD_ITALIC), + BOLD_ITALIC("bold_italic", Typeface.BOLD_ITALIC), ITALIC("italic", Typeface.ITALIC); companion object {