mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 03:31:05 +00:00
_
This commit is contained in:
@@ -290,9 +290,9 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
if (ctx != null) {
|
||||
//view.getSettings().setAppCachePath(ctx.getCacheDir().getAbsolutePath());
|
||||
//view.getSettings().setAppCacheEnabled(true);
|
||||
Util.invokeMethodIfExists(settings, "setAppCachePath", ctx.getCacheDir().getAbsolutePath());
|
||||
Util.invokeMethodIfExists(view.getSettings(), "setAppCachePath", ctx.getCacheDir().getAbsolutePath());
|
||||
view.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
Util.invokeMethodIfExists(settings, "setAppCacheEnabled", true);
|
||||
Util.invokeMethodIfExists(view.getSettings(), "setAppCacheEnabled", true);
|
||||
}
|
||||
} else {
|
||||
view.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
|
||||
|
||||
Reference in New Issue
Block a user