From aa5a6c09fb87558719c946231b40eb97c69ced1c Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 23 Jan 2025 12:45:54 -0700 Subject: [PATCH] Prevent using the web cache. https://redmine.stoutner.com/issues/1265 --- .gitignore | 1 + app/build.gradle | 6 +++--- .../privacybrowser/activities/MainWebViewActivity.kt | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ed7caad3..d8952459 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ .DS_Store /build /captures +/.kotlin /projectFilesBackup # Built APK files. diff --git a/app/build.gradle b/app/build.gradle index 743555bf..9c0c898c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-3.0-or-later - * SPDX-FileCopyrightText: 2016-2024 Soren Stoutner + * SPDX-FileCopyrightText: 2016-2025 Soren Stoutner * * This file is part of Privacy Browser Android . * @@ -82,7 +82,7 @@ android { dependencies { // Include the following AndroidX libraries. - implementation "androidx.activity:activity-ktx:1.9.3" + implementation "androidx.activity:activity-ktx:1.10.0" implementation 'androidx.arch.core:core-common:2.2.0' implementation 'androidx.arch.core:core-runtime:2.2.0' implementation 'androidx.appcompat:appcompat:1.7.0' @@ -100,5 +100,5 @@ dependencies { implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.21' // Include the Google material library. - implementation 'com.google.android.material:material:1.13.0-alpha09' + implementation 'com.google.android.material:material:1.13.0-alpha10' } diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt index 6a725efc..9c0508e2 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt @@ -4811,6 +4811,9 @@ class MainWebViewActivity : AppCompatActivity(), CreateBookmarkDialog.CreateBook } } + // Disable using the web cache. + nestedScrollWebView.settings.cacheMode = WebSettings.LOAD_NO_CACHE + // Set the app bar scrolling. nestedScrollWebView.isNestedScrollingEnabled = scrollAppBar -- 2.47.2