add MapView.post(Runnable)

This commit is contained in:
Hannes Janetzek
2013-07-26 03:12:56 +02:00
parent 7ca6ae05b4
commit 23a26eb18c
3 changed files with 13 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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;