No, the type is number
maybe onSettingsChanged isn't a good place to use setValue
what will happen if user change settings in low power and you, for example, try to load resource?
What will happen in low power mode? When to use setValue
not setValue but forbidden function like loadResource...
lastStyle is your internal property so use storage to save it and you save memory
and remember that user can change settings when app isn't in foreground so there won't be onSettingsChanged called
and of course system behaviour is strange - all operation connected with settings are strange and need a lot of memory so be careful (in my case system deletes all settings in some case and can't do anything)
If the setting is a String you can't == you have to String.equal() it. I get bitten by that to at times. I look at it, I go mad and than .... **** It's a string... equals it is.
but here property is number...
How do I update a setting? There are no properties set according to my sim: https://imgur.com/a/dQ0tZYQ
you have chooses storage instead of properties

It works, but not on Linux. It says it has no settings for odd reasons.
I checked on Windows.. and it looks like a bug to me indeed. As if it is reading the setting only from the settings/properties.xml and its not changing it on the set value .
What happens when you call that getValue() outside of the onChanged function, like. It's a watch face, so you don't have any other views right?