Hi,
I have a problem regarding updating my watchface properly:
I try to implement a theme switch which changes the entire theme of my watchface. If one likes his current watchface settings he can store those settings. By doing this my watchface creates a so called theme string which represents all the settings. The theme string is stored in the object store and so the user can load this theme string again at any time. This works pretty well. At the same time all user settings in the object store are adjusted according the theme string. By using this theme switch, onSettingsChanged() is called and there I placed an Ui.requestUpdate().
Nevertheless, I also implemented a way that the user can specify a time when the theme string is loaded. The functions behind the theme loading are the very same as in the upper case. Also the user settings in the object store are adjusted in the very same way. Unfortunately this method to switch a theme works not very well. Either the watchface hangs up or the watchface is messed up by mixing different settings. I can easily repair this by switching for and back to another widget, which means that the adjusting of the settings in the object store is OK. I am wondering why the watchface hangs up then. I had a look in the CIQ_log.txt and it says it's an unexpected error or so, nothing really helpful.
I am wondering what the differences are between an Ui.requestUpdate() called from the onSettingsChanged() and a method which is called at the very beginning of onUpdate() when a certain time was reached.