Reset importDone at the beginning of sync
This commit is contained in:
@@ -45,6 +45,7 @@ public class ContactSyncAdapterService extends Service {
|
|||||||
@Override
|
@Override
|
||||||
public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider,
|
public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider,
|
||||||
final SyncResult syncResult) {
|
final SyncResult syncResult) {
|
||||||
|
importDone.set(false);
|
||||||
KeychainApplication.setupAccountAsNeeded(ContactSyncAdapterService.this);
|
KeychainApplication.setupAccountAsNeeded(ContactSyncAdapterService.this);
|
||||||
EmailKeyHelper.importContacts(getContext(), new Messenger(new Handler(Looper.getMainLooper(),
|
EmailKeyHelper.importContacts(getContext(), new Messenger(new Handler(Looper.getMainLooper(),
|
||||||
new Handler.Callback() {
|
new Handler.Callback() {
|
||||||
|
|||||||
Reference in New Issue
Block a user