Journals: support adding back deleted journals.

This currently just adds the journal back, but doesn't re-apply the
journal, so the calendar for example would be empty, but the journal
itself would be listed and visible.
pull/14/head
Tom Hacohen 8 years ago
parent d3057f86f0
commit 4c47384198

@ -201,6 +201,7 @@ public abstract class SyncAdapterService extends Service {
JournalEntity journalEntity = JournalEntity.fetchOrCreate(data, collection);
journalEntity.setOwner(journal.getOwner());
journalEntity.setEncryptedKey(journal.getKey());
journalEntity.setDeleted(false);
data.upsert(journalEntity);
existing.remove(collection.uid);

Loading…
Cancel
Save