This used to happen to me with roScreen, but it's also happening to me in Scene Graph.
If I open a Roku modal, especially the purchase dialogs, it records the button presses and then fires them again after you close it. So you'll press "OK" on the dialog to close it, but it then fires that same OK event and the message system picks it up. So then I get caught in an indefinite loop.
I've implemented a system where I ignore the next automatically delivered click event when Roku dialogs are used, but this is the hackiest thing ever. I'm really hoping this is adjustable in some way. I have a regular running loop that catches all events and basically triggers a broadcast for certain things, like "OK" press, and then pages will have an event handler. When the modals are open.. the button presses are seemingly saved up and executed once the dialog is closed. That seems like a Roku bug to me. Why would the events be handled by the dialog AND sent to the loop AFTER the dialog closure? It's essentially doubling their effect.
Tips? Thoughts?