Fix ImageEditingManager when no external cache
Summary:`externalCacheDir == null && externalCacheDir == null` is obviously a typo in existing code. Closes https://github.com/facebook/react-native/pull/6429 Differential Revision: D3184362 fb-gh-sync-id: 1cd966ed96414348c4319d44679d2c912df6cc93 fbshipit-source-id: 1cd966ed96414348c4319d44679d2c912df6cc93
This commit is contained in:
parent
75992e700d
commit
fffcb9c88a
|
@ -485,7 +485,7 @@ public class ImageEditingManager extends ReactContextBaseJavaModule {
|
||||||
File externalCacheDir = context.getExternalCacheDir();
|
File externalCacheDir = context.getExternalCacheDir();
|
||||||
File internalCacheDir = context.getCacheDir();
|
File internalCacheDir = context.getCacheDir();
|
||||||
File cacheDir;
|
File cacheDir;
|
||||||
if (externalCacheDir == null && externalCacheDir == null) {
|
if (externalCacheDir == null && internalCacheDir == null) {
|
||||||
throw new IOException("No cache directory available");
|
throw new IOException("No cache directory available");
|
||||||
}
|
}
|
||||||
if (externalCacheDir == null) {
|
if (externalCacheDir == null) {
|
||||||
|
|
Loading…
Reference in New Issue