@@ -1009,14 +1009,6 @@ public class MapView extends FrameLayout implements LocationListener {
|
||||
mNativeMapView.resizeFramebuffer(width, height);
|
||||
}
|
||||
|
||||
// Called when we need to redraw the view
|
||||
// This is called before our view is first visible to prevent an initial
|
||||
// flicker (see Android SDK documentation)
|
||||
/*@Override
|
||||
public void surfaceRedrawNeeded(SurfaceHolder holder) {
|
||||
mNativeMapView.update();
|
||||
}*/ // TODO call update somewhere?
|
||||
|
||||
// Not used
|
||||
@Override
|
||||
public void onSurfaceTextureUpdated (SurfaceTexture surface) {
|
||||
@@ -1796,7 +1788,6 @@ public class MapView extends FrameLayout implements LocationListener {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines callback for events OnMapChange
|
||||
*/
|
||||
|
||||
@@ -176,12 +176,14 @@ public class MainActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
|
||||
mMapView.onStart();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
|
||||
mMapView.onStop();
|
||||
}
|
||||
|
||||
@@ -204,6 +206,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
mMapView.onDestroy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user