From f3b49e63410b07d68d99b6f636e327a8f6a47583 Mon Sep 17 00:00:00 2001 From: Zkitefly <2573874409@qq.com> Date: Thu, 6 Jun 2024 12:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=E7=BC=93=E5=AD=98=20(#70)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 启用缓存 * update * update * update * update --- app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java b/app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java index 85ff5b9..654ccf6 100644 --- a/app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java +++ b/app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java @@ -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);