Created
January 22, 2013 11:54
-
-
Save pidster/4594060 to your computer and use it in GitHub Desktop.
Sample of runOnWorker() implementation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void runOnWorker(final Handler<Void> handler) { | |
Context context = getOrAssignContext(); | |
context.executeOnWorker(new Runnable() { | |
public void run() { | |
handler.handle(null); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment