mirror of
https://github.com/etesync/android
synced 2025-01-11 00:01:12 +00:00
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.
This commit is contained in:
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…
Reference in New Issue
Block a user