add MapView.post(Runnable)
This commit is contained in:
@@ -163,10 +163,14 @@ public class AndroidMapView extends RelativeLayout {
|
||||
mClearMap = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postRunnable(Runnable runnable) {
|
||||
return post(runnable);
|
||||
}
|
||||
};
|
||||
|
||||
mGLView = new GLView(context, mMapView);
|
||||
|
||||
mCompass = new Compass(mapActivity, mMapView);
|
||||
|
||||
mapActivity.registerMapView(mMapView);
|
||||
@@ -181,6 +185,7 @@ public class AndroidMapView extends RelativeLayout {
|
||||
mMapView.updateMap(false);
|
||||
}
|
||||
|
||||
|
||||
public MapView getMap() {
|
||||
return mMapView;
|
||||
}
|
||||
|
||||
@@ -64,6 +64,12 @@ public class GdxMap implements ApplicationListener {
|
||||
else
|
||||
Gdx.graphics.requestRendering();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postRunnable(Runnable runnable) {
|
||||
Gdx.app.postRunnable(runnable);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
mMapRenderer = new GLRenderer(mMapView);
|
||||
|
||||
@@ -113,6 +113,7 @@ public abstract class MapView {
|
||||
|
||||
public abstract int getWidth();
|
||||
public abstract int getHeight();
|
||||
public abstract boolean postRunnable(Runnable runnable);
|
||||
|
||||
protected boolean mClearMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user