From f052d92fe6d33b659038d46ce10b6bc4b743dd20 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Tue, 19 Jul 2022 15:25:22 -0700 Subject: [PATCH] Fix intents opening extra tabs on restart for real. https://redmine.stoutner.com/issues/807 --- app/build.gradle | 3 --- .../privacybrowser/activities/MainWebViewActivity.java | 3 +++ app/src/main/res/values-es/strings.xml | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2ab5953c..b1db7c95 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,9 +30,6 @@ android { targetSdk 32 versionCode 59 versionName "3.10.1" - - // `multiDexEnabled` can possibly be removed once the `minSdkVersion` is >= 21. - multiDexEnabled true } buildTypes { diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java index c2d169b4..cd5a3d84 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -692,6 +692,9 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook drawerLayout.closeDrawer(GravityCompat.END); } } + } else { // The app has been restarted. + // Replace the intent that started the app with this one. This will load the tab after the others have been restored. + setIntent(intent); } } diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index c5584a85..5aac801c 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -506,6 +506,10 @@ Bloquear todas las solicitudes de terceras partes Bloquear todas las solicitudes de terceras partes aumenta la privacidad, pero rompe muchas páginas web. Modificación de URL + Peticiones de seguimiento + Eliminar las peticiones de seguimiento conocidas de las URLs. + Redirecciones AMP + Eliminar las peticiones de redirección AMP (Accelerated Mobil Pages) conocidas de las URLs. Búsqueda Mojeek -- 2.45.2