summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient/ProviderDetailFragment.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-08-29 11:02:58 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-15 23:25:16 +0100
commit1d57d052814b8d46f3bdc850893171f238cdb2ef (patch)
treeb5833bd8245f052a19c2b3be196204ee90110324 /src/se/leap/bitmaskclient/ProviderDetailFragment.java
parent54cd37ae861e57b33c0a6f1b6b5098da848ec05b (diff)
Only selected provider remain visible.
The progressbar is always below the first row, because only the selected provider row remain visible. If the user cancels the ProviderDetailFragment, all providers appear again. Next step: implement the same behaviour with the new provider usecase.
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderDetailFragment.java')
-rw-r--r--src/se/leap/bitmaskclient/ProviderDetailFragment.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderDetailFragment.java b/src/se/leap/bitmaskclient/ProviderDetailFragment.java
index 4006a76c..2616cdbf 100644
--- a/src/se/leap/bitmaskclient/ProviderDetailFragment.java
+++ b/src/se/leap/bitmaskclient/ProviderDetailFragment.java
@@ -83,10 +83,18 @@ public class ProviderDetailFragment extends DialogFragment {
@Override
public void onCancel(DialogInterface dialog) {
super.onCancel(dialog);
+<<<<<<< HEAD
ConfigHelper.removeFromSharedPref(Provider.KEY);
ConfigHelper.removeFromSharedPref(ProviderItem.DANGER_ON);
ConfigHelper.removeFromSharedPref(EIP.ALLOWED_ANON);
ConfigHelper.removeFromSharedPref(EIP.KEY);
+=======
+ ConfigHelper.removeFromSharedPref(ConfigHelper.PROVIDER_KEY);
+ ConfigHelper.removeFromSharedPref(ConfigHelper.DANGER_ON);
+ ConfigHelper.removeFromSharedPref(ConfigHelper.ALLOWED_ANON);
+ ConfigHelper.removeFromSharedPref(ConfigHelper.EIP_SERVICE_KEY);
+ interface_with_configuration_wizard.refreshProviderList(0);
+>>>>>>> Only selected provider remain visible.
}
public static DialogFragment newInstance() {
@@ -108,6 +116,7 @@ public class ProviderDetailFragment extends DialogFragment {
public interface ProviderDetailFragmentInterface {
public void login();
public void use_anonymously();
+ public void refreshProviderList(int top_padding);
}
ProviderDetailFragmentInterface interface_with_configuration_wizard;