Пример #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);
 }