From: Soren Stoutner
Date: Sat, 15 May 2021 20:42:15 +0000 (-0700)
Subject: Fix downloads consuming massive CPU and locking the UI on slower CPUs. https://redmin...
X-Git-Tag: v3.8~3
X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=f4126c24a54f9af846371bb1515e072a818060c1;p=PrivacyBrowserAndroid.git
Fix downloads consuming massive CPU and locking the UI on slower CPUs. https://redmine.stoutner.com/issues/709
---
diff --git a/app/src/main/assets/ru/guide_tracking_ids.html b/app/src/main/assets/ru/guide_tracking_ids.html
index 038d16bb..4962e530 100644
--- a/app/src/main/assets/ru/guide_tracking_ids.html
+++ b/app/src/main/assets/ru/guide_tracking_ids.html
@@ -33,8 +33,7 @@
ÐÑо доÑÑигаеÑÑÑ Ð¿ÑÑем вклÑÑÐµÐ½Ð¸Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ° DNT (Ðе оÑÑлеживаÑÑ) в веб-запÑоÑÑ.
Ðаголовок DNT на Ñамом деле не обеÑпеÑÐ¸Ð²Ð°ÐµÑ Ð±Ð¾Ð»ÑÑÑÑ ÐºÐ¾Ð½ÑиденÑиалÑноÑÑÑ, поÑколÑÐºÑ Ð±Ð¾Ð»ÑÑинÑÑво веб-ÑеÑвеÑов его игноÑиÑÑÑÑ.
- ÐапÑимеÑ, Yahoo, Google, Microsoft и Facebook игноÑиÑÑÑÑ, по кÑайней меÑе, некоÑоÑÑе заголовки DNT.
- Beginning with version 3.8, Privacy Browser no longer has the option to send a DNT header.
+ ÐапÑимеÑ, Yahoo, Google, Microsoft и Facebook игноÑиÑÑÑÑ, по кÑайней меÑе, некоÑоÑÑе заголовки DNT. ÐаÑÐ¸Ð½Ð°Ñ Ñ Ð²ÐµÑÑии 3.8, Privacy Browser пеÑеÑÑал оÑпÑавлÑÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº DNT.
ÐодиÑикаÑÐ¸Ñ URL
diff --git a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/SaveUrl.java b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/SaveUrl.java
index 03ab3746..c9307095 100644
--- a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/SaveUrl.java
+++ b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/SaveUrl.java
@@ -170,7 +170,8 @@ public class SaveUrl extends AsyncTask {
InputStream inputStream = new BufferedInputStream(httpUrlConnection.getInputStream());
// Initialize the conversion buffer byte array.
- byte[] conversionBufferByteArray = new byte[1024];
+ // This is set to a megabyte so that frequent updating of the snackbar doesn't freeze the interface on download.
+ byte[] conversionBufferByteArray = new byte[1048576];
// Initialize the downloaded kilobytes counter.
long downloadedKilobytesCounter = 0;
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 2a7cfd6e..0b08a5a1 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -218,6 +218,8 @@
Antwortinhalt
Content-Metadaten
Content-Daten
+ Das SSL-Zertifikat ist nicht vertrauenswürdig.
+ Trotzdem laden
Ãber Quelltext
Weil Androids WebView keine Quelltext-Informationen zur Verfügung stellt, muss eine separate a separate Serveranfrage mit system tools gestellt werden,
die hier dargestellten Daten erhält. Deshalb können Unterschiede zwischen diesen Daten und der mit WebView dargestellten Webseite auftreten.
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index ac18568f..2bb9834b 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -214,6 +214,8 @@
Cuerpo de respuesta
Metadatos del contenido
Datos del contenido
+ El certificado SSL no es de confianza.
+ Cargar de todos modos
Acerca de ver la fuente
Debido a que WebView de Android no expone la información fuente,
se hizo una solicitud por separado utilizando las herramientas del sistema para recopilar la información mostrada en esta actividad.
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index ca7baf3b..c9debb5c 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -214,6 +214,8 @@
Testo della Risposta
Content - Metadati
Content - Dati
+ Il certificato SSL non è attendibile.
+ Carica comunque
Informazioni sulla visualizzazione della sorgente
Dal momento che la WebView di Android non fornisce indicazioni sulla sorgente è stata effettuata una richiesta separata utilizzando i system tools in modo da
ottenere le informazioni mostrate. Potrebbero esserci alcune differenze tra questi dati e quelli utilizzati da WebView.
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 7bf9e192..9e0f0846 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -211,6 +211,8 @@
Тело оÑвеÑа
ÐеÑаданнÑе ÑодеÑжимого
ÐаннÑе ÑодеÑжимого
+ SSL-ÑеÑÑиÑÐ¸ÐºÐ°Ñ Ð½Ðµ ÑвлÑеÑÑÑ Ð´Ð¾Ð²ÐµÑеннÑм.
+ ÐÑе Ñавно загÑÑзиÑÑ
РпÑоÑмоÑÑе иÑÑ
одного кода
ÐоÑколÑÐºÑ Android WebView не пÑедоÑÑавлÑÐµÑ Ð¸ÑÑ
однÑе даннÑе, Ð´Ð»Ñ ÑбоÑа инÑоÑмаÑии, оÑобÑажаемой в ÑÑом дейÑÑвии,
бÑл Ñделан оÑделÑнÑй запÑÐ¾Ñ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÑиÑÑемнÑÑ
ÑÑедÑÑв. ÐÐµÐ¶Ð´Ñ ÑÑими даннÑми и Ñеми, коÑоÑÑе иÑполÑзÑÑÑÑÑ Ð² WebView, могÑÑ Ð±ÑÑÑ Ð½ÐµÐºÐ¾ÑоÑÑе оÑлиÑиÑ.