Last active
March 12, 2018 09:02
-
-
Save vvsevolodovich/5cbebc29cfc8c9762a400ea9f3917507 to your computer and use it in GitHub Desktop.
App db init with posting an event
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
mBackground.execute(new Runnable() { | |
@Override | |
public void run() { | |
try { | |
initDatabaseInternal(); | |
mBackground.post(new DatabaseLoadedEvent()); | |
} catch (Exception e) { | |
Log.e("Failed to init db", e); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment