Skip to content

Commit

Permalink
Enable queueing Runnables to the execute on the render thread
Browse files Browse the repository at this point in the history
  • Loading branch information
matteblair committed Dec 17, 2015
1 parent 8273369 commit 8fb18bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/tangram/src/com/mapzen/tangram/MapController.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ public void setFeatureTouchListener(FeatureTouchListener listener) {
featureTouchListener = listener;
}

/**
* Enqueue a Runnable to be executed synchronously on the rendering thread
* @param r Runnable to run
*/
public void queueEvent(Runnable r) {
mapView.queueEvent(r);
}

// Native methods
// ==============

Expand Down

0 comments on commit 8fb18bc

Please sign in to comment.