aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations
diff options
context:
space:
mode:
authorAdithya Abraham Philip <adithyaphilip@gmail.com>2015-05-28 17:02:34 +0530
committerAdithya Abraham Philip <adithyaphilip@gmail.com>2015-06-01 17:41:44 +0530
commit14a08361e52bcd8bd26b9b2b2b9690276b40ed42 (patch)
tree596f89e6a9e432568fa212437e64a5462cbed0ca /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations
parentb356df900fb5ee3b9fc981f0beec73b48b529155 (diff)
downloadopen-keychain-14a08361e52bcd8bd26b9b2b2b9690276b40ed42.tar.gz
open-keychain-14a08361e52bcd8bd26b9b2b2b9690276b40ed42.tar.bz2
open-keychain-14a08361e52bcd8bd26b9b2b2b9690276b40ed42.zip
merged services
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java
index b48de009e..ff568a9f6 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java
@@ -156,6 +156,15 @@ public class ImportExportOperation extends BaseOperation {
}
+ /**
+ * Since the introduction of multithreaded import, we expect calling functions to handle the key sync i,e
+ * ContactSyncAdapterService.requestSync()
+ *
+ * @param entries keys to import
+ * @param num number of keys to import
+ * @param keyServerUri contains uri of keyserver to import from, if it is an import from cloud
+ * @return
+ */
public ImportKeyResult importKeyRings(Iterator<ParcelableKeyRing> entries, int num, String keyServerUri) {
updateProgress(R.string.progress_importing, 0, 100);
@@ -331,7 +340,7 @@ public class ImportExportOperation extends BaseOperation {
// Special: make sure new data is synced into contacts
// disabling sync right now since it reduces speed while multi-threading
// so, we expect calling functions to take care of it. KeychainIntentService handles this
- //ContactSyncAdapterService.requestSync();
+ // ContactSyncAdapterService.requestSync();
// convert to long array
long[] importedMasterKeyIdsArray = new long[importedMasterKeyIds.size()];
@@ -375,8 +384,6 @@ public class ImportExportOperation extends BaseOperation {
log.add(LogType.MSG_IMPORT_ERROR, 1);
}
- ContactSyncAdapterService.requestSync();
-
return new ImportKeyResult(resultType, log, newKeys, updatedKeys, badKeys, secret,
importedMasterKeyIdsArray);
}