From 4ab6ddf9d103ee59884f1701186db61da9aff56b Mon Sep 17 00:00:00 2001 From: R4SAS Date: Mon, 26 Sep 2022 14:18:31 +0200 Subject: [PATCH] I2P Support [2] --- .../eu/siacs/conversations/services/ProviderService.java | 2 +- .../eu/siacs/conversations/services/UpdateService.java | 8 ++++++-- .../java/eu/siacs/conversations/ui/UpdaterActivity.java | 9 ++++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/services/ProviderService.java b/src/main/java/eu/siacs/conversations/services/ProviderService.java index f6c5761c9..3947c97b9 100644 --- a/src/main/java/eu/siacs/conversations/services/ProviderService.java +++ b/src/main/java/eu/siacs/conversations/services/ProviderService.java @@ -43,7 +43,7 @@ public class ProviderService extends AsyncTask { boolean isError = false; try { Log.d(Config.LOGTAG, "ProviderService: Updating provider list from " + Config.PROVIDER_URL); - final InputStream is = HttpConnectionManager.open(Config.PROVIDER_URL, false); + final InputStream is = HttpConnectionManager.open(Config.PROVIDER_URL, false, false); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); String line; while ((line = reader.readLine()) != null) { diff --git a/src/main/java/eu/siacs/conversations/services/UpdateService.java b/src/main/java/eu/siacs/conversations/services/UpdateService.java index a9cc7ccd3..daca32144 100644 --- a/src/main/java/eu/siacs/conversations/services/UpdateService.java +++ b/src/main/java/eu/siacs/conversations/services/UpdateService.java @@ -31,6 +31,7 @@ import me.drakeet.support.toast.ToastCompat; public class UpdateService extends AsyncTask { private boolean mUseTor; + private boolean mUseI2P; private Context context; private String store; private NotificationService getNotificationService; @@ -39,6 +40,7 @@ public class UpdateService extends AsyncTask