1
0
mirror of https://github.com/etesync/android synced 2025-01-11 00:01:12 +00:00

Address book selection changed: update URL as soon as possible

This commit is contained in:
Ricki Hirner 2016-12-19 18:57:45 +01:00
parent 91d4e38227
commit ef92753ac6
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

@ -1 +1 @@
Subproject commit 3c55eb1f6e066cd0e7b854388e46a7bb93374781
Subproject commit 704955ee830d9254f1a3674888fb60dd56535715