summaryrefslogtreecommitdiff
path: root/src/se
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-03-24 20:36:08 +0100
committerParménides GV <parmegv@sdf.org>2014-04-02 15:39:51 +0200
commit6cb654d169c62653d652009d3c8de51ca877e38b (patch)
tree74281f2d3085639bc047801f1dfc53214743594e /src/se
parent1790250865f8c017745591f4d35823d33d62047f (diff)
eip switch off && logged in != autostart eip
Diffstat (limited to 'src/se')
-rw-r--r--src/se/leap/bitmaskclient/Dashboard.java3
-rw-r--r--src/se/leap/bitmaskclient/EipServiceFragment.java6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java
index 4ad6d029..b8d76f87 100644
--- a/src/se/leap/bitmaskclient/Dashboard.java
+++ b/src/se/leap/bitmaskclient/Dashboard.java
@@ -375,7 +375,8 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
setResult(RESULT_OK);
changeStatusMessage(resultCode);
mProgressBar.setVisibility(ProgressBar.GONE);
- eipStart();
+ if(EipServiceFragment.isEipSwitchChecked())
+ eipStart();
} else if(resultCode == ProviderAPI.INCORRECTLY_DOWNLOADED_CERTIFICATE) {
setResult(RESULT_CANCELED);
changeStatusMessage(resultCode);
diff --git a/src/se/leap/bitmaskclient/EipServiceFragment.java b/src/se/leap/bitmaskclient/EipServiceFragment.java
index 318e4024..bae1b942 100644
--- a/src/se/leap/bitmaskclient/EipServiceFragment.java
+++ b/src/se/leap/bitmaskclient/EipServiceFragment.java
@@ -29,7 +29,7 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe
private static final String IS_EIP_PENDING = "is_eip_pending";
private View eipFragment;
- private Switch eipSwitch;
+ private static Switch eipSwitch;
private View eipDetail;
private TextView eipStatus;
@@ -278,4 +278,8 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe
public static EIPReceiver getReceiver() {
return mEIPReceiver;
}
+
+ public static boolean isEipSwitchChecked() {
+ return eipSwitch.isChecked();
+ }
}