mirror of
https://github.com/etesync/android
synced 2025-06-25 01:18:58 +00:00
Address book selection changed: update URL as soon as possible
This commit is contained in:
parent
91d4e38227
commit
ef92753ac6
@ -151,6 +151,7 @@ public class ContactsSyncManager extends SyncManager {
|
|||||||
if (!url.equals(lastUrl)) {
|
if (!url.equals(lastUrl)) {
|
||||||
App.log.info("Selected address book has changed from " + lastUrl + " to " + url + ", deleting all local contacts");
|
App.log.info("Selected address book has changed from " + lastUrl + " to " + url + ", deleting all local contacts");
|
||||||
localAddressBook.deleteAll();
|
localAddressBook.deleteAll();
|
||||||
|
localAddressBook.setURL(remote.url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set up Contacts Provider Settings
|
// set up Contacts Provider Settings
|
||||||
@ -372,7 +373,6 @@ public class ContactsSyncManager extends SyncManager {
|
|||||||
@Override
|
@Override
|
||||||
protected void saveSyncState() throws CalendarStorageException, ContactsStorageException {
|
protected void saveSyncState() throws CalendarStorageException, ContactsStorageException {
|
||||||
super.saveSyncState();
|
super.saveSyncState();
|
||||||
((LocalAddressBook)localCollection).setURL(remote.url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 3c55eb1f6e066cd0e7b854388e46a7bb93374781
|
Subproject commit 704955ee830d9254f1a3674888fb60dd56535715
|
Loading…
Reference in New Issue
Block a user