Upload key working

This commit is contained in:
Dominik Schürmann
2014-08-20 22:51:00 +02:00
parent 0f8958afb9
commit 37caddca70
4 changed files with 8 additions and 13 deletions

View File

@@ -575,8 +575,9 @@ public class KeychainIntentService extends IntentService
CanonicalizedPublicKeyRing keyring = providerHelper.getCanonicalizedPublicKeyRing(dataUri);
PgpImportExport pgpImportExport = new PgpImportExport(this, null);
boolean uploaded = pgpImportExport.uploadKeyRingToServer(server, keyring);
if (!uploaded) {
try {
pgpImportExport.uploadKeyRingToServer(server, keyring);
} catch (Keyserver.AddKeyException e) {
throw new PgpGeneralException("Unable to export key to selected server");
}