1
0
mirror of https://github.com/etesync/android synced 2024-12-23 15:18:14 +00:00

AccountSettings: remove wrong version set.

This was a leftover from the cherry-pick from DAVdroid. The version is
set outside of this function, so this was redundant, and wrong.
This commit is contained in:
Tom Hacohen 2017-04-27 14:11:30 +01:00
parent 643e2b23ea
commit a107cd3fa2

View File

@ -311,9 +311,6 @@ public class AccountSettings {
throw new ContactsStorageException("Couldn't migrate contacts to new address book", e);
}
// update version number so that further syncs don't repeat the migration
accountManager.setUserData(account, KEY_SETTINGS_VERSION, "6");
// request sync of new address book account
ContentResolver.setIsSyncable(account, App.getAddressBooksAuthority(), 1);
setSyncInterval(App.getAddressBooksAuthority(), Constants.DEFAULT_SYNC_INTERVAL);