mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 18:54:58 +00:00
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 internalCacheDir = context.getCacheDir();
|
||||
File cacheDir;
|
||||
if (externalCacheDir == null && externalCacheDir == null) {
|
||||
if (externalCacheDir == null && internalCacheDir == null) {
|
||||
throw new IOException("No cache directory available");
|
||||
}
|
||||
if (externalCacheDir == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user