This commit is contained in:
Roman Volosovskyi 2023-07-05 12:46:58 +02:00
parent df493332a0
commit 07bd00e4e1
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 2 additions and 2 deletions

View File

@ -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);