Wear CWF Fix invalid keys for topOffset, leftOffset and rotationOffset steps
This commit is contained in:
parent
5fd2db9706
commit
7b5d164239
2 changed files with 6 additions and 3 deletions
|
@ -268,6 +268,9 @@ enum class JsonKeys(val key: String) {
|
|||
DYNPREF("dynPref"),
|
||||
DYNPREFCOLOR("dynPrefColor"),
|
||||
PREFKEY("prefKey"),
|
||||
INVALIDTOPOFFSET("invalidTopOffset"),
|
||||
INVALIDLEFTOFFSET("invalidLeftOffset"),
|
||||
INVALIDROTATIONOFFSET("invalidRotationOffset"),
|
||||
DEFAULT("default")
|
||||
}
|
||||
|
||||
|
|
|
@ -819,9 +819,9 @@ class CustomWatchface : BaseWatchFace() {
|
|||
getColorSteps(dynColor, COLOR.key, INVALIDCOLOR.key)
|
||||
getColorSteps(dynFontColor, FONTCOLOR.key, INVALIDFONTCOLOR.key)
|
||||
getIntSteps(dynTextSize, TEXTSIZE.key, INVALIDTEXTSIZE.key)
|
||||
getIntSteps(dynLeftOffset, LEFTOFFSET.key, INVALIDTEXTSIZE.key)
|
||||
getIntSteps(dynTopOffset, TOPOFFSET.key, INVALIDTEXTSIZE.key)
|
||||
getIntSteps(dynRotationOffset, ROTATIONOFFSET.key, INVALIDTEXTSIZE.key)
|
||||
getIntSteps(dynLeftOffset, LEFTOFFSET.key, INVALIDLEFTOFFSET.key)
|
||||
getIntSteps(dynTopOffset, TOPOFFSET.key, INVALIDTOPOFFSET.key)
|
||||
getIntSteps(dynRotationOffset, ROTATIONOFFSET.key, INVALIDROTATIONOFFSET.key)
|
||||
}
|
||||
|
||||
private fun getDrawableSteps(dynMap: MutableMap<Int, Drawable?>, key: String, invalidKey: String) {
|
||||
|
|
Loading…
Reference in a new issue