public void startDbWriteTask(boolean returnSequenceCount) {
   getSupportFragmentManager()
       .beginTransaction()
       .add(DbWriteFragment.newInstance(returnSequenceCount), "SAVE_TASK")
       .add(ProgressDialogFragment.newInstance(R.string.progress_dialog_saving), "PROGRESS")
       .commit();
 }
Exemplo n.º 2
0
 @Override
 public void onFinishEditDialog(Bundle args) {
   Long parentId;
   if ((parentId = args.getLong("parentId")) == 0L) parentId = null;
   mCategory = new Category(args.getLong("catId"), args.getString("result"), parentId);
   getSupportFragmentManager()
       .beginTransaction()
       .add(DbWriteFragment.newInstance(false), "SAVE_TASK")
       .commit();
 }