-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ImageEditingManager to use internal storage before falling bac…
…k to external for cache Summary: Changelog: [Android] [Changed] - Internal storage now will be preferred for caching images from ImageEditor. Now we try to write to internal cache directory first. If that fails (due to no memory error or other IOException), we attempt to write to external storage (if that is allowed). I introduced additional configuration flag, `allowExternalStorage` which is true by default. And i updated documentation for new behaviour - see `ImageEditor.cropImage(..)` comment. Reviewed By: makovkastar Differential Revision: D19878158 fbshipit-source-id: 7e338ce68f535f74c62b5eecd5a94af7e7396f8b
- Loading branch information
1 parent
956359b
commit 79efa43
Showing
2 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters