Wear CWF: Replace all - by _ in json keys
This commit is contained in:
parent
ffabf889f7
commit
8dabfe6099
1 changed files with 3 additions and 3 deletions
|
@ -459,9 +459,9 @@ class CustomWatchface : BaseWatchFace() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum class FontMap(val key: String, var font: Typeface, @FontRes val fontRessources: Int?) {
|
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("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),
|
MONOSPACE("monospace", Typeface.MONOSPACE, null),
|
||||||
SERIF("serif", Typeface.SERIF, null),
|
SERIF("serif", Typeface.SERIF, null),
|
||||||
ROBOTO_CONDENSED_BOLD("roboto_condensed_bold", Typeface.DEFAULT, R.font.roboto_condensed_bold),
|
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) {
|
private enum class StyleMap(val key: String, val style: Int) {
|
||||||
NORMAL("normal", Typeface.NORMAL),
|
NORMAL("normal", Typeface.NORMAL),
|
||||||
BOLD("bold", Typeface.BOLD),
|
BOLD("bold", Typeface.BOLD),
|
||||||
BOLD_ITALIC("bold-italic", Typeface.BOLD_ITALIC),
|
BOLD_ITALIC("bold_italic", Typeface.BOLD_ITALIC),
|
||||||
ITALIC("italic", Typeface.ITALIC);
|
ITALIC("italic", Typeface.ITALIC);
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in a new issue