Created
March 12, 2018 09:05
-
-
Save vvsevolodovich/afc935ddfe33d04eee34bee7e919446d to your computer and use it in GitHub Desktop.
Background with posting event on UI
This file contains hidden or 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 postEventOnUiThread(final Object event) { | |
mUiHandler.post(new Runnable() { | |
@Override | |
public void run() { | |
mEventBus.post(event); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment