diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-21 21:59:07 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-21 21:59:07 +0200 |
commit | 86554a846440428fbb4965070956862c3e17c771 (patch) | |
tree | f727c4d97ea1392bf0dc0347673395bbceedbd75 /src/main/java/de/pixart/messenger/crypto | |
parent | 6827cc3d0cecb04fe029fcc2f6177715dc3338f6 (diff) |
retrigger key selection if openpgp key was deleted
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/crypto/PgpEngine.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/crypto/PgpEngine.java b/src/main/java/de/pixart/messenger/crypto/PgpEngine.java index c77603219..38d097ec3 100644 --- a/src/main/java/de/pixart/messenger/crypto/PgpEngine.java +++ b/src/main/java/de/pixart/messenger/crypto/PgpEngine.java @@ -259,8 +259,13 @@ public class PgpEngine { account); return; case OpenPgpApi.RESULT_CODE_ERROR: - logError(account, (OpenPgpError) result.getParcelableExtra(OpenPgpApi.RESULT_ERROR)); - callback.error(R.string.unable_to_connect_to_keychain, account); + OpenPgpError error = result.getParcelableExtra(OpenPgpApi.RESULT_ERROR); + if (error != null && "signing subkey not found!".equals(error.getMessage())) { + callback.error(0,account); + } else { + logError(account, error); + callback.error(R.string.unable_to_connect_to_keychain, null); + } } } }); |