Ticket Created
over 4 years ago

ACROPOLIS-2993

Unable to dynamically update Menu2 title - works in sim, not on device

I modded the SDK's Menu2Sample to fire a timer every second which calls both setTitle() and updateItem(), followed by WatchUi.requestUpdate(), to cycle through 3 values for the title and an item sublabel. In the sim, both the title and the item sublabel are updated. For a real 935, only the item sublabel is updated.

The presence of the title as an option in the Menu2 constructor, as well as the availability of a separate setTitle() method, seems to imply that setTitle() should be able to work dynamically. (Otherwise what's the purpose of setTitle()?) Not to mention the fact that it does work dynamically in the sim.

If it's intentional that the title can't be updated dynamically, it would be nice to:

1) Update the docs to make this clear

2) Update the behavior in the sim

It would also be nice if the docs explicitly called out the fact that Menu2.onUpdate can't be overridden due to the fact that it's a native view. (Same with any other views which may have this restriction, such as ProgressBar.)

Sim:

https://ibb.co/qp7vX7Y

FR935:

https://ibb.co/4gkYkJH

Environment:

- Windows 10

- VS Code 1.54.1

- Monkey C extension 0.1.9

- CIQ SDK 3.2.5

- FR935 firmware 21.00

Parents
  • Hi Travis, 

    but that is violation against your documentation, isn't it? Why not to mention this limitation there, so user will not have to find it after spending days of development on simulator where it works just fine? 

    These are some of those frustrating moments of CIQ development which I often referring to - when you realise that you can throw away significant development time because it doesn't work "as it should" in the real world. 

Comment
  • Hi Travis, 

    but that is violation against your documentation, isn't it? Why not to mention this limitation there, so user will not have to find it after spending days of development on simulator where it works just fine? 

    These are some of those frustrating moments of CIQ development which I often referring to - when you realise that you can throw away significant development time because it doesn't work "as it should" in the real world. 

Children
No Data