Created
March 12, 2018 09:05
-
-
Save vvsevolodovich/00059ced1ea7c36f028dec90613b4d5a to your computer and use it in GitHub Desktop.
Splash with rerunning the code 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 class SplashActivity extends Activity { | |
@Subscribe | |
public void on(DatabaseLoadedEvent event) { | |
runOnUiThread(new Runnable() { | |
@Override | |
public void run() { | |
progressBar.setVisibility(View.GONE); | |
showMainActivity(); | |
} | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment