diff options
author | Parménides GV <parmegv@sdf.org> | 2014-08-14 01:10:58 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-08-14 01:10:58 +0200 |
commit | 832439305dd15afd616b78f669da146cc10c9205 (patch) | |
tree | e23bce460b2c302a4570e4aec10e1d79e314351a | |
parent | b9e3c1fa1d5ba69324fad1fa72efa789e91c4b20 (diff) |
Connected UI correctly restored correctly.
-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() { |