diff options
author | Isc <ccccym666@gmail.com> | 2020-05-23 13:28:29 +0300 |
---|---|---|
committer | Isc <ccccym666@gmail.com> | 2020-05-23 13:28:29 +0300 |
commit | 910f465fc8925e6f94da952e58c4d5ba8bb597c1 (patch) | |
tree | bcf33250f39134aa69eb74169c7aab8e78b2945c /app | |
parent | c045948f8119894f3f58863fa69bfd02e8f932ff (diff) |
Bug fixed: incorrect accountID in category table
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java index 250c264d..b57ca8d0 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java @@ -545,7 +545,7 @@ public class NotesDatabase extends AbstractNotesDatabase { values.put(key_modified, remoteNote.getModified().getTimeInMillis() / 1000); values.put(key_content, remoteNote.getContent()); values.put(key_favorite, remoteNote.isFavorite()); - values.put(key_category, getCategoryIdByTitle(id, remoteNote.getCategory())); + values.put(key_category, getCategoryIdByTitle(localAccount.getId(), remoteNote.getCategory())); values.put(key_etag, remoteNote.getEtag()); values.put(key_excerpt, NoteUtil.generateNoteExcerpt(remoteNote.getContent())); String whereClause; |