use of de.djuelg.neuronizer.domain.model.BaseModel in project Neuronizer by djuelg.
the class PreviewFragment method editItem.
private void editItem(int position) {
PreviewViewModel previewVM = mAdapter.getItem(position);
if (previewVM != null) {
BaseModel preview = previewVM.getPreview().getBaseItem();
if (preview instanceof TodoList) {
showEditTodoListDialog(this, preview.getUuid(), preview.getTitle(), preview.getPosition());
} else if (preview instanceof Note) {
showEditNoteDialog(this, preview.getUuid(), preview.getTitle(), preview.getPosition());
}
mAdapter.notifyItemChanged(position);
}
}
Aggregations