예제 #1
0
  @Override
  protected void openRecord(long id) {
    Spell spell = Spell.load(Spell.class, id);

    EditSpellDialogFragment dialog = EditSpellDialogFragment.create(spell);
    dialog.show(getSupportFragmentManager(), "spell_edit");
  }
예제 #2
0
 @Override
 protected void deleteRow(long id) {
   Spell.delete(Spell.class, id);
 }