inform storage provider of uri content-type for decrypted output

This commit is contained in:
Vincent Breitmoser
2015-09-19 15:45:00 +02:00
parent 5330a91fef
commit 35eee40d70

View File

@@ -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();
}