Created
March 12, 2018 08:58
-
-
Save vvsevolodovich/23b2c65fc2b60c8ef7a4f154b81b667a to your computer and use it in GitHub Desktop.
Background with Handler
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 class Background { | |
... | |
private final Handler mUiHandler; | |
public void postOnUiThread(final Runnable runnable) { | |
mUiHandler.post(runnable); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment