mirror of
https://github.com/etesync/android
synced 2024-11-15 12:28:57 +00:00
Fix collection creation.
This commit is contained in:
parent
c5a17291e5
commit
119ae5b9fe
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user