Commit ef92753a authored by Ricki Hirner's avatar Ricki Hirner

Address book selection changed: update URL as soon as possible

parent 91d4e382
Pipeline #5465544 passed with stage
in 16 minutes and 25 seconds
......@@ -151,6 +151,7 @@ public class ContactsSyncManager extends SyncManager {
if (!url.equals(lastUrl)) {
App.log.info("Selected address book has changed from " + lastUrl + " to " + url + ", deleting all local contacts");
localAddressBook.deleteAll();
localAddressBook.setURL(remote.url);
}
// set up Contacts Provider Settings
......@@ -372,7 +373,6 @@ public class ContactsSyncManager extends SyncManager {
@Override
protected void saveSyncState() throws CalendarStorageException, ContactsStorageException {
super.saveSyncState();
((LocalAddressBook)localCollection).setURL(remote.url);
}
......
Subproject commit 3c55eb1f6e066cd0e7b854388e46a7bb93374781
Subproject commit 704955ee830d9254f1a3674888fb60dd56535715
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment