From: Soren Stoutner Date: Tue, 19 Jul 2022 22:25:22 +0000 (-0700) Subject: Fix intents opening extra tabs on restart for real. https://redmine.stoutner.com... X-Git-Tag: v3.11~8 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=f052d92fe6d33b659038d46ce10b6bc4b743dd20;p=PrivacyBrowserAndroid.git Fix intents opening extra tabs on restart for real. https://redmine.stoutner.com/issues/807 --- 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