summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient/LeapHttpClient.java
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2014-02-28 17:21:36 -0800
committerSean Leonard <meanderingcode@aetherislands.net>2014-02-28 17:21:36 -0800
commitdfc259473a26bb71bca226c8290d227fa954bcb8 (patch)
tree1132b8e00b08bfdd690693bcd9ef25db482bc5d0 /src/se/leap/bitmaskclient/LeapHttpClient.java
parente6149d1d9ef77409e84d5982a92dd727f0bae2f7 (diff)
parent1fe78d00244f52f903435c970c0ebf0071a08f36 (diff)
Merge branch 'feature/remove-shared-preferences-methods-from-ConfigHelper' into develop
Conflicts: src/se/leap/bitmaskclient/Dashboard.java
Diffstat (limited to 'src/se/leap/bitmaskclient/LeapHttpClient.java')
-rw-r--r--src/se/leap/bitmaskclient/LeapHttpClient.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/se/leap/bitmaskclient/LeapHttpClient.java b/src/se/leap/bitmaskclient/LeapHttpClient.java
index 837da236..885b5105 100644
--- a/src/se/leap/bitmaskclient/LeapHttpClient.java
+++ b/src/se/leap/bitmaskclient/LeapHttpClient.java
@@ -34,7 +34,6 @@ import android.content.Context;
*
*/
public class LeapHttpClient extends DefaultHttpClient {
- final Context context;
private static LeapHttpClient client;
@@ -43,10 +42,8 @@ public class LeapHttpClient extends DefaultHttpClient {
* @param context
* @return the new client.
*/
- public static LeapHttpClient getInstance(Context context) {
+ public static LeapHttpClient getInstance(String cert_string) {
if(client == null) {
- client = new LeapHttpClient(context);
- String cert_string = ConfigHelper.getStringFromSharedPref(Provider.CA_CERT);
if(cert_string != null) {
ConfigHelper.addTrustedCertificate("provider_ca_certificate", cert_string);
}
@@ -77,8 +74,4 @@ public class LeapHttpClient extends DefaultHttpClient {
throw new AssertionError(e);
}
}
-
- public LeapHttpClient(Context context) {
- this.context = context;
- }
}