summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-14 23:59:34 +0200
committercyBerta <cyberta@riseup.net>2021-07-21 22:02:28 +0200
commit99fd84e800758647b4a4e178f8f5f7112b54d66f (patch)
treef1127aef99000bedaacac01a6e6aacb135dfc8b3 /app/src/main/java/se/leap
parent9d16ae1456b6d6a2fc2eb67b23fc05bc878ba741 (diff)
rename method
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java2
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
index f88f44a5..15843697 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
@@ -154,7 +154,7 @@ public class ProviderAPI extends JobIntentService implements ProviderApiManagerB
@Override
- public int initTorConnection() {
+ public int getTorHttpTunnelPort() {
initTorServiceConnection(this);
if (torServiceConnection != null) {
Intent torServiceIntent = new Intent(this, TorService.class);
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
index 00cbcd3e..f70be365 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
@@ -291,7 +291,7 @@ public abstract class ProviderApiManagerBase {
protected int startTorProxy() {
int port = -1;
if (PreferenceHelper.useTor(preferences) && EipStatus.getInstance().isDisconnected() ) {
- port = serviceCallback.initTorConnection();
+ port = serviceCallback.getTorHttpTunnelPort();
if (port != -1) {
try {
waitForTorCircuits();