1
0
mirror of https://github.com/etesync/android synced 2024-11-15 12:28:57 +00:00

Fix collection creation.

This commit is contained in:
Tom Hacohen 2017-02-15 17:08:38 +00:00
parent c5a17291e5
commit 119ae5b9fe

View File

@ -143,7 +143,10 @@ public class CreateCollectionFragment extends DialogFragment implements LoaderMa
HttpUrl principal = HttpUrl.get(settings.getUri());
JournalManager journalManager = new JournalManager(HttpClient.create(getContext(), account), principal);
journalManager.putJournal(new JournalManager.Journal(settings.password(), info.toJson(), info.url));
JournalManager.Journal journal = new JournalManager.Journal(settings.password(), info.toJson());
// CollectionInfo doesn't have a url at this point, update it.
info.url = journal.getUuid();
journalManager.putJournal(journal);
// 2. add collection to service
ContentValues values = info.toDB();