From 6f2ad98d308582f123461f24b873a206ec929201 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Tue, 23 Jun 2020 16:18:09 +0200 Subject: [PATCH] removed twitter4j proxy settings --- .../nuclearfog/twidda/backend/engine/TwitterEngine.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/engine/TwitterEngine.java b/app/src/main/java/org/nuclearfog/twidda/backend/engine/TwitterEngine.java index 6add696a..0dac181a 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/engine/TwitterEngine.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/engine/TwitterEngine.java @@ -76,15 +76,6 @@ public class TwitterEngine { ConfigurationBuilder builder = new ConfigurationBuilder(); builder.setOAuthConsumerKey(BuildConfig.API_KEY_1); builder.setOAuthConsumerSecret(BuildConfig.API_KEY_2); - // Twitter4J has its own proxy settings - if (settings.isProxyServerSet()) { - builder.setHttpProxyHost(settings.getProxyHost()); - builder.setHttpProxyPort(Integer.parseInt(settings.getProxyPort())); - if (settings.isProxyLoginSet()) { - builder.setHttpProxyUser(settings.getProxyUser()); - builder.setHttpProxyPassword(settings.getProxyPass()); - } - } TwitterFactory factory = new TwitterFactory(builder.build()); if (aToken != null) { twitter = factory.getInstance(aToken);