]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Prevent using the web cache. https://redmine.stoutner.com/issues/1265
authorSoren Stoutner <soren@stoutner.com>
Thu, 23 Jan 2025 19:45:54 +0000 (12:45 -0700)
committerSoren Stoutner <soren@stoutner.com>
Thu, 23 Jan 2025 19:45:54 +0000 (12:45 -0700)
.gitignore
app/build.gradle
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt

index ed7caad39eeed54e5a48d9cb88ef11eeebf55ad6..d89524594cf7bd1ee51e240381706794dca18fe5 100644 (file)
@@ -4,6 +4,7 @@
 .DS_Store
 /build
 /captures
+/.kotlin
 /projectFilesBackup
 
 # Built APK files.
index 743555bfa932d1a1fab3eb342043f78a748006a1..9c0c898c695c02155ddc81949bfde915159f3eab 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-3.0-or-later
- * SPDX-FileCopyrightText: 2016-2024 Soren Stoutner <soren@stoutner.com>
+ * SPDX-FileCopyrightText: 2016-2025 Soren Stoutner <soren@stoutner.com>
  *
  * This file is part of Privacy Browser Android <https://www.stoutner.com/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'
 }
index 6a725efcca14e1dd8a2fb688667c55293819e443..9c0508e2dde1273e4bf5ecf32070734d275f6823 100644 (file)
@@ -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