This commit is contained in:
Roman Volosovskyi
2023-07-05 12:46:58 +02:00
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);