I have a view that displays an actionContent button and removes it when the view goes away.
I add it on the creationComplete event handler and remove it on the viewDeactivate event handler.
The problem is that the viewDeactivate is fired when the the Menu button is pressed or a phone call is received for example and thus it removes the button.
When the application is brought back, the button is no longer there.
Although I can add the code to create the button again on viewActivate this time, I wonder if there is a better way to do this.
Also, on deactivate I am removing a SkinnablePopUpContainer (if open) and some event listeners, and I don't want this to happen when app goes into background.
viewDeactivate - fires when view slided out and when app goes to background
removing - fires when slide out effect started
remove - fires when slide out effect ended