Exemplo n.º 1
0
 @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);
     }
   }
 }
Exemplo n.º 2
0
 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();
   }
 }
Exemplo n.º 3
0
 @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);
     }
   }
 }