Skip to content

Commit 5d0751a

Browse files
greFacebook Github Bot 7
authored andcommitted
Fix ImageEditingManager when no external cache
Summary:`externalCacheDir == null && externalCacheDir == null` is obviously a typo in existing code. Closes facebook/react-native#6429 Differential Revision: D3184362 fb-gh-sync-id: 1cd966ed96414348c4319d44679d2c912df6cc93 fbshipit-source-id: 1cd966ed96414348c4319d44679d2c912df6cc93
1 parent d99a1a1 commit 5d0751a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ImageEditingManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private static File createTempFile(Context context, @Nullable String mimeType)
485485
File externalCacheDir = context.getExternalCacheDir();
486486
File internalCacheDir = context.getCacheDir();
487487
File cacheDir;
488-
if (externalCacheDir == null && externalCacheDir == null) {
488+
if (externalCacheDir == null && internalCacheDir == null) {
489489
throw new IOException("No cache directory available");
490490
}
491491
if (externalCacheDir == null) {

0 commit comments

Comments
 (0)