PDA

View Full Version : [2.2.0] Hidden mapSurfaceView on fragment



Tibal
16.09.2014, 14:54
Hi,

Since 2.2.0, some hours ago, my mapSurfaceView included in a fragment is invisible.
Looking at logcat, I see that it seems to be paused at startup:

SKMaps﹕ SKMapSurfaceView---- ON PAUSE

If I manually trigger

mapViewHolder.getMapSurfaceView().onResume();

My map appears normally.

Am I messing something, or is that a bug ?

dandronic
16.09.2014, 15:04
I guess that the previous behaviour was a bug (or worked by coincidence).

mapView.onResume() should be called in the onResume method of the activity that uses the SKMapSurfaceView (and mapView.onPause should also be called in the onPause method).

Tibal
16.09.2014, 15:11
I indeed forgot that, thanks for answering, but it did was a bug in previous version, so ;-)