Set filename after decryption
This commit is contained in:
parent
26f8a9db9c
commit
bcef5b6692
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue