diff --git a/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java b/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java index 652a458d..56f6841d 100644 --- a/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java +++ b/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java @@ -71,6 +71,7 @@ public class NotesDatabaseTest { assertEquals(3, idMapOfFirstAccount.size()); assertEquals(Long.valueOf(1L), idMapOfFirstAccount.get(1001L)); assertEquals(Long.valueOf(3L), idMapOfFirstAccount.get(1003L)); + assertEquals(Long.valueOf(5L), idMapOfFirstAccount.get(1005L)); final Map idMapOfSecondAccount = db.getIdMap(secondAccount.getId()); assertEquals(1, idMapOfSecondAccount.size()); diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/dao/NoteDao.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/dao/NoteDao.java index 7e73132a..561ce8a4 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/dao/NoteDao.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/dao/NoteDao.java @@ -16,6 +16,10 @@ import it.niedermann.owncloud.notes.persistence.entity.CategoryWithNotesCount; import it.niedermann.owncloud.notes.persistence.entity.Note; import it.niedermann.owncloud.notes.shared.model.DBStatus; +/** + * Each method starting with search will return only a partial {@link Note} without any + * {@link Note#eTag}, {@link Note#status}, {@link Note#content} or {@link Note#scrollY} for performance reasons. + */ @SuppressWarnings("JavadocReference") @Dao public interface NoteDao {