I have a ListView
that is inside a TabWidget
. When I select an item on the ListView
and go to the child ListView
, the TabWidget
disappears. This is fine, except that it invokes the onPause
method, and thus causes onRestart
to be called when I return to the parent ListView
.
I have onRestart
setup to retrieve updated data from the server, but I do not want this to occur everytime the user returns to the parent ListView
. I only want onRestart
to be called when the app comes alive from running in the background. I have tried implementing a Boolean variable to determine if I should execute the code that is inside onRestart
, but there doesn't seem to be a way to get around the effects of this.
Ideas?