summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-08-03 12:19:19 +0200
committerParménides GV <parmegv@sdf.org>2013-08-03 12:19:19 +0200
commit9d8bbb7f806757fd62cbba886af111278e625774 (patch)
tree6a03dd512dfa7cb060e068099bfdc16c97512a31 /src/se/leap
parent4ee80745c72a56c5b3f407efa3e9ac88c7c3154e (diff)
EIP fragment is replaced if provider is switched.
We were checking if eip existed before adding it again, but that check can be removed if we make a replace instead of an add.
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/leapclient/Dashboard.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/se/leap/leapclient/Dashboard.java b/src/se/leap/leapclient/Dashboard.java
index 063cd3cd..d81c3def 100644
--- a/src/se/leap/leapclient/Dashboard.java
+++ b/src/se/leap/leapclient/Dashboard.java
@@ -141,9 +141,9 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
providerNameTV.setTextSize(28);
FragmentManager fragMan = getFragmentManager();
- if ( provider.hasEIP() && fragMan.findFragmentByTag(TAG_EIP_FRAGMENT) == null){
+ if ( provider.hasEIP()){
EipServiceFragment eipFragment = new EipServiceFragment();
- fragMan.beginTransaction().add(R.id.servicesCollection, eipFragment, TAG_EIP_FRAGMENT).commit();
+ fragMan.beginTransaction().replace(R.id.servicesCollection, eipFragment, TAG_EIP_FRAGMENT).commit();
}
}