Merge branch 'master' of github.com:open-keychain/open-keychain
This commit is contained in:
@@ -467,11 +467,8 @@ public class OpenPgpService extends Service {
|
|||||||
cryptoInput.mPassphrase =
|
cryptoInput.mPassphrase =
|
||||||
new Passphrase(data.getCharArrayExtra(OpenPgpApi.EXTRA_PASSPHRASE));
|
new Passphrase(data.getCharArrayExtra(OpenPgpApi.EXTRA_PASSPHRASE));
|
||||||
}
|
}
|
||||||
if (data.hasExtra(OpenPgpApi.EXTRA_DECRYPTION_RESULT_WRAPPER)) {
|
if (data.hasExtra(OpenPgpApi.EXTRA_DECRYPTION_RESULT)) {
|
||||||
// this is wrapped in a Bundle to avoid ClassLoader problems
|
OpenPgpDecryptionResult decryptionResult = data.getParcelableExtra(OpenPgpApi.EXTRA_DECRYPTION_RESULT);
|
||||||
Bundle wrapperBundle = data.getBundleExtra(OpenPgpApi.EXTRA_DECRYPTION_RESULT_WRAPPER);
|
|
||||||
wrapperBundle.setClassLoader(getClassLoader());
|
|
||||||
OpenPgpDecryptionResult decryptionResult = wrapperBundle.getParcelable(OpenPgpApi.EXTRA_DECRYPTION_RESULT);
|
|
||||||
if (decryptionResult != null && decryptionResult.hasDecryptedSessionKey()) {
|
if (decryptionResult != null && decryptionResult.hasDecryptedSessionKey()) {
|
||||||
cryptoInput.addCryptoData(decryptionResult.getSessionKey(), decryptionResult.getDecryptedSessionKey());
|
cryptoInput.addCryptoData(decryptionResult.getSessionKey(), decryptionResult.getDecryptedSessionKey());
|
||||||
}
|
}
|
||||||
@@ -916,6 +913,9 @@ public class OpenPgpService extends Service {
|
|||||||
@Nullable InputStream inputStream,
|
@Nullable InputStream inputStream,
|
||||||
@Nullable OutputStream outputStream) {
|
@Nullable OutputStream outputStream) {
|
||||||
|
|
||||||
|
// We need to be able to load our own parcelables
|
||||||
|
data.setExtrasClassLoader(getClassLoader());
|
||||||
|
|
||||||
Intent errorResult = checkRequirements(data);
|
Intent errorResult = checkRequirements(data);
|
||||||
if (errorResult != null) {
|
if (errorResult != null) {
|
||||||
return errorResult;
|
return errorResult;
|
||||||
|
|||||||
2
extern/openpgp-api-lib
vendored
2
extern/openpgp-api-lib
vendored
Submodule extern/openpgp-api-lib updated: ff848daa51...16409bfab3
Reference in New Issue
Block a user