In my application I need to switch frequently between two main screens (tripleplay.game.Screen)
In order to toggle between the two screens, I always keep one Screen on the tripleplay.game.ScreenStack and I push/remove the second Screen to/from ScreenStack. This cause a lot of calls to wasAdded()/wasRemoved() methods of the second screen.
To avoid performance degradation I choosen to do nothing in the wasRemoved() method and I put an alreadyCreated flag on the MyScreen class to avoid execution of the logic contained in the wasAdded() method.
Is it possible to switch between two screens already on the ScreenStack without removing the topmost screen but simply swapping positions of the screens inside the stack?
Thanks in advance, Gio