Revert "No need for setSyncAutomatically, this is only for network tickles"

This reverts commit 0c1e65bc8b.

Conflicts:
	OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java
This commit is contained in:
Dominik Schürmann 2014-08-22 08:53:16 +02:00
parent 7adff7c7df
commit 152cd10b70

View File

@ -120,6 +120,7 @@ public class KeychainApplication extends Application {
Account account = new Account(Constants.ACCOUNT_NAME, Constants.ACCOUNT_TYPE); Account account = new Account(Constants.ACCOUNT_NAME, Constants.ACCOUNT_TYPE);
if (manager.addAccountExplicitly(account, null, null)) { if (manager.addAccountExplicitly(account, null, null)) {
ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1);
ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, true);
} else { } else {
Log.e(Constants.TAG, "Adding account failed!"); Log.e(Constants.TAG, "Adding account failed!");
} }