@Override protected void onPostExecute(Void result) { super.onPostExecute(result); if (mIRModel.isEmptyTable()) { DatabaseCreate databaseCreate = new DatabaseCreate(); databaseCreate.execute(); } else { if (loadConfigWizard) { SyncWizard syncWizard = new SyncWizard(); FragmentListener mFragment = (FragmentListener) getActivity(); mFragment.startMainFragment(syncWizard, false); } } }
private void initArgs() { if (getArguments() != null && getArguments().containsKey("no_config_wizard")) { loadConfigWizard = !getArguments().getBoolean("no_config_wizard"); } mUser = new OUser(); mUser.setFromBundle(getArguments()); if (loadConfigWizard) { GetInstances instances = new GetInstances(getArguments().getBoolean("self_hosted")); instances.execute(); } else { // Create database DatabaseCreate databaseCreate = new DatabaseCreate(); databaseCreate.execute(); } }
@Override protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (result) { DatabaseCreate databaseCreate = new DatabaseCreate(); databaseCreate.execute(); } else { if (mOdooException != null) { OExceptionDialog dialog = new OExceptionDialog(getActivity(), true, mOdooException); dialog.show(); OControls.setVisible(mView, R.id.instanceList); OControls.setGone(mView, R.id.progressLoader); } } }