use of de.djuelg.neuronizer.storage.model.NoteDAO in project Neuronizer by djuelg.
the class NoteRepositoryImpl method update.
@Override
public void update(Note updatedNote) {
Realm realm = Realm.getInstance(configuration);
final NoteDAO noteDAO = RealmConverter.convert(updatedNote);
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(@NonNull Realm realm) {
realm.copyToRealmOrUpdate(noteDAO);
}
});
realm.close();
}
Aggregations