- String profileUUID = MLDB.getOption(MLDB.OPT_PROFILE_UUID, null);
- MobileLedgerProfile startupProfile = Data.getProfile(profileUUID);
- if (startupProfile != null)
- Data.setCurrentProfile(startupProfile);
+ DatabaseInitThread dbInitThread = new DatabaseInitThread();
+ Logger.debug("splash", "starting dbInit task");
+ dbInitThread.start();
+ }
+ @Override
+ protected void onPause() {
+ super.onPause();
+ Logger.debug("splash", "onPause()");
+ running = false;
+ }
+ @Override
+ protected void onResume() {
+ super.onResume();
+ Logger.debug("splash", "onResume()");
+ running = true;
+ }
+ private void onDbInitDoneChanged(Boolean done) {
+ if (!done) {
+ Logger.debug("splash", "DB not yet initialized");
+ return;
+ }