This commit is contained in:
parent
df493332a0
commit
07bd00e4e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue