inform storage provider of uri content-type for decrypted output
This commit is contained in:
@@ -114,6 +114,12 @@ public class InputDataOperation extends BaseOperation<InputDataParcel> {
|
|||||||
return new InputDataResult(InputDataResult.RESULT_ERROR, log);
|
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 {
|
} else {
|
||||||
currentInputUri = input.getInputUri();
|
currentInputUri = input.getInputUri();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user