diff options
author | Parménides GV <parmegv@sdf.org> | 2014-08-14 01:13:24 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-08-14 01:13:24 +0200 |
commit | e7ff0b15109060326040f22ac60c4448a55f5667 (patch) | |
tree | e23bce460b2c302a4570e4aec10e1d79e314351a /app/src | |
parent | b9e3c1fa1d5ba69324fad1fa72efa789e91c4b20 (diff) | |
parent | 832439305dd15afd616b78f669da146cc10c9205 (diff) |
Merge branch 'bug/Changing-orientation-resets-eip-fragment-#5982' into develop
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java index 879d4dcd..09f9dbdb 100644 --- a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java @@ -212,7 +212,7 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe boolean isNewLevel = EIP.lastConnectionStatusLevel != level; boolean justDecidedOnDisconnect = EIP.lastConnectionStatusLevel == ConnectionStatus.UNKNOWN_LEVEL; Log.d(TAG, "update state with level " + level); - if(isNewLevel && !justDecidedOnDisconnect) { + if(!justDecidedOnDisconnect && (isNewLevel || level == ConnectionStatus.LEVEL_CONNECTED)) { getActivity().runOnUiThread(new Runnable() { @Override public void run() { |