summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-08-03 21:47:47 +0200
committerParménides GV <parmegv@sdf.org>2014-08-03 21:47:47 +0200
commit55c57e6c2856a453e042e2e68284fa2cf3a98a89 (patch)
treea396c4903387b88d8618a78b86244744747c7582 /app/src
parent9b6f5499e6d5e9efd0b7b372c28b5c71d940e785 (diff)
Changed the position of a method.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
index a41f0d19..879d4dcd 100644
--- a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
@@ -88,18 +88,6 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe
eipCommand(EIP.ACTION_CHECK_CERT_VALIDITY);
}
-
- private void adjustSwitch() {
- if(EIP.isConnected()) {
- if(!eipSwitch.isChecked()) {
- eipSwitch.setChecked(true);
- }
- } else {
- if(eipSwitch.isChecked()) {
- eipSwitch.setChecked(false);
- }
- }
- }
@Override
public void onPause() {
@@ -274,6 +262,18 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe
adjustSwitch();
}
+ private void adjustSwitch() {
+ if(EIP.isConnected()) {
+ if(!eipSwitch.isChecked()) {
+ eipSwitch.setChecked(true);
+ }
+ } else {
+ if(eipSwitch.isChecked()) {
+ eipSwitch.setChecked(false);
+ }
+ }
+ }
+
private void setNoServerReplyUI(int localizedResId, String logmessage) {
if(eipStatus != null) {
String prefix = getString(localizedResId);