Set filename after decryption

This commit is contained in:
Andrea Torlaschi 2016-03-05 13:24:18 +01:00
parent 26f8a9db9c
commit bcef5b6692

View file

@ -119,8 +119,9 @@ public class InputDataOperation extends BaseOperation<InputDataParcel> {
// inform the storage provider about the mime type for this uri // inform the storage provider about the mime type for this uri
if (decryptResult.getDecryptionMetadata() != null) { if (decryptResult.getDecryptionMetadata() != null) {
TemporaryFileProvider.setMimeType(mContext, currentInputUri, OpenPgpMetadata meta = decryptResult.getDecryptionMetadata();
decryptResult.getDecryptionMetadata().getMimeType()); TemporaryFileProvider.setName(mContext, currentInputUri, meta.getFilename());
TemporaryFileProvider.setMimeType(mContext, currentInputUri, meta.getMimeType());
} }
} else { } else {