mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
Reset importDone at the beginning of sync
This commit is contained in:
parent
b9d88de286
commit
a1c3c41073
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user