diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2015-09-19 15:45:00 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2015-09-19 15:45:00 +0200 |
commit | 35eee40d70ca5d29bdedfb7a2fc1ca688f42dca3 (patch) | |
tree | 5e90fce09006ad0fefbd5b5ff048e9aeedef2184 | |
parent | 5330a91fef160b7d1bc4bae997997416ee01922c (diff) | |
download | open-keychain-35eee40d70ca5d29bdedfb7a2fc1ca688f42dca3.tar.gz open-keychain-35eee40d70ca5d29bdedfb7a2fc1ca688f42dca3.tar.bz2 open-keychain-35eee40d70ca5d29bdedfb7a2fc1ca688f42dca3.zip |
inform storage provider of uri content-type for decrypted output
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/InputDataOperation.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/InputDataOperation.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/InputDataOperation.java index 9170dc139..7ec57cb2d 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/InputDataOperation.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/InputDataOperation.java @@ -114,6 +114,12 @@ public class InputDataOperation extends BaseOperation<InputDataParcel> { return new InputDataResult(InputDataResult.RESULT_ERROR, log); } + // inform the storage provider about the mime type for this uri + if (decryptResult.getDecryptionMetadata() != null) { + TemporaryStorageProvider.setMimeType(mContext, currentInputUri, + decryptResult.getDecryptionMetadata().getMimeType()); + } + } else { currentInputUri = input.getInputUri(); } |