android: remove MapActivity
- see vtm-android-start for an example use of MapView - add MapPreferences - update android-start - android-example: use appcompat actionbar
This commit is contained in:
@@ -60,7 +60,6 @@ public class MapView extends GLSurfaceView {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public MapView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
|
||||
@@ -92,10 +91,6 @@ public class MapView extends GLSurfaceView {
|
||||
setRenderer(new GLRenderer(mMap));
|
||||
setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
|
||||
|
||||
/* to be removed */
|
||||
if (context instanceof MapActivity)
|
||||
((MapActivity) context).registerMapView(this);
|
||||
|
||||
mMap.clearMap();
|
||||
mMap.updateMap(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user