Fix saving mail attachment error
Description
There was a problem with saving attachments, as the schema path for a predefined location (file:///) was causing security exceptions. It was changed based on the implementations from the original code base.
Type of change
- [ x] Bug fix (non-breaking change which fixes an issue)
- [x ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How has this been tested?
- Saving mail attachment on SDCard
- Saving mail attachment on internal storage
All tests were performed on emulator.
Checklist:
-
My code follows the style guidelines of this project -
I have performed a self-review of my own code -
I have commented my code, particularly in hard-to-understand areas -
I have made corresponding changes to the documentation -
New and existing unit tests pass locally with my changes -
Any dependent changes have been merged and published in downstream modules