summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-11-12 03:58:03 +0100
committerParménides GV <parmegv@sdf.org>2014-11-26 12:20:24 +0100
commit1fcf003abf27b58047d59a3f8ac4787987de2ecd (patch)
tree4a13656fefc0e3c08d7e22c386ddf566ced1f99d /app
parentb8087831f7db9fbc7806c58e632bda448b3b9e3b (diff)
Smaller method.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EIP.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
index 92eba23c..94027491 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
@@ -73,7 +73,6 @@ public final class EIP extends IntentService {
super.onCreate();
context = getApplicationContext();
-
preferences = getSharedPreferences(Dashboard.SHARED_PREFERENCES, MODE_PRIVATE);
refreshEipDefinition();
}
@@ -254,14 +253,9 @@ public final class EIP extends IntentService {
}
private void checkCertValidity() {
- Bundle result = new Bundle();
- result.putString(REQUEST_TAG, ACTION_CHECK_CERT_VALIDITY);
-
VpnCertificateValidator validator = new VpnCertificateValidator();
- if(validator.isValid(preferences.getString(CERTIFICATE, "")))
- mReceiver.send(Activity.RESULT_OK, result);
- else
- mReceiver.send(Activity.RESULT_CANCELED, result);
+ boolean is_valid = validator.isValid(preferences.getString(CERTIFICATE, ""));
+ tellToReceiver(ACTION_CHECK_CERT_VALIDITY, is_valid);
}
/**