Skip to content

Commit

Permalink
fix: Update cache mode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTimeWalker committed Oct 8, 2023
1 parent 10bfc09 commit 4c276ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class BrowserActivityNative : BaseBrowserActivity(), LifecycleObserver, WebClien
webSettings?.databaseEnabled = true
webSettings?.saveFormData = true
webSettings?.javaScriptCanOpenWindowsAutomatically = true
webSettings?.setAppCacheEnabled(true)
webSettings?.cacheMode = WebSettings.LOAD_NO_CACHE
webSettings?.allowFileAccess = true
webSettings?.allowFileAccessFromFileURLs = true
webSettings?.allowContentAccess = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CustomWebView @JvmOverloads constructor(
settings.databaseEnabled = true
settings.saveFormData = true
settings.javaScriptCanOpenWindowsAutomatically = true
settings.setAppCacheEnabled(true)
settings.cacheMode = WebSettings.LOAD_NO_CACHE
settings.allowFileAccess = true
settings.allowFileAccessFromFileURLs = true
settings.allowContentAccess = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class ScreenSaverView : RelativeLayout {
webSettings.javaScriptEnabled = true
webSettings.domStorageEnabled = true
webSettings.databaseEnabled = true
webSettings.setAppCacheEnabled(true)
webSettings.cacheMode = WebSettings.LOAD_NO_CACHE
webSettings.javaScriptCanOpenWindowsAutomatically = true
if (!TextUtils.isEmpty(userAgent)) {
webSettings.userAgentString = userAgent
Expand Down

0 comments on commit 4c276ba

Please sign in to comment.