I am working on adding a user configurable front end to my app. When
changing from one configuration to another I am removing the views from the
view hierarchy and re-attaching them into a new hierarchy. This is working
well apart from with the MapView which looks to go and do a load of
shutdown code for the tile providers in responce to the onDetachedFromWindow()
call but has nothing to set it all back up again in the coresponding onAttachedToWindow()
call.
I look to be able to get things working by stoping the onDetachedFromWindow
call getting though by extending the MapView and over riding the
onDetachedFromWindow call and not passing it on if a flag I set before the
repostioning is set.
Should the shutdown code me moved somewhere else? Is there anywhere more
apropriate?