Skip to content

Commit

Permalink
启用缓存 (#70)
Browse files Browse the repository at this point in the history
* 启用缓存

* update

* update

* update

* update
  • Loading branch information
zkitefly authored Jun 6, 2024
1 parent 9cf5eba commit f3b49e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ protected void onCreate(Bundle savedInstanceState) {
webSettings.setBlockNetworkImage(true); // 禁用网络图片加载
webSettings.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36");

// 启用缓存
webSettings.setCacheMode(WebSettings.LOAD_DEFAULT);

// 启用 JavaScript 自动点击功能
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);

Expand Down

0 comments on commit f3b49e6

Please sign in to comment.