Button focus on SpringboardScreen not staying consistent
I saw this thread already, but it's pretty old: https://forums.roku.com/viewtopic.php?t=28280
I have 4 buttons on the roSpringboardScreen. I want to toggle the caption of the 3rd one... so it's like:
Option 1 Option 2 Toggle Button Off Option 4
And you could have that change to be "Toggle Button On" without changing the selection/focus index.
I have allowUpdates(true) and useStableFocus(true) enabled. My current method is to do screen.clearButtons(), then add all of the buttons again.
Currently, I have different code numbers for the two toggles, e.g.: addButton(30, "Toggle Button Off") vs addButton(35, "Toggle Button On").. I thought that might be part of the problem, but it doesn't appear to be. I tried using the same numbers and it had no effect.