summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/ProviderDetailFragment.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-06-29 14:03:15 +0200
committerSean Leonard <meanderingcode@aetherislands.net>2013-07-12 11:54:52 -0600
commitb684f2fdd35064210d7c5ae760c1a2e4939b1ec5 (patch)
tree7b9ece739e4435488820072f4353cc751837cb72 /src/se/leap/leapclient/ProviderDetailFragment.java
parent6a8a4acdca2c0828c2768a18a470ee64525e0d7f (diff)
Pressing back button, we don't choose any provider
Once in the provider detail fragment, if the user presses the back button, provider.json is removed from sharedpreferences (so that Dashboard does not start as if the user had selected the canceled provider) and ConfigurationWizard gets the focus.
Diffstat (limited to 'src/se/leap/leapclient/ProviderDetailFragment.java')
-rw-r--r--src/se/leap/leapclient/ProviderDetailFragment.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/ProviderDetailFragment.java b/src/se/leap/leapclient/ProviderDetailFragment.java
index 3b6cf83c..0b707d3e 100644
--- a/src/se/leap/leapclient/ProviderDetailFragment.java
+++ b/src/se/leap/leapclient/ProviderDetailFragment.java
@@ -74,6 +74,12 @@ public class ProviderDetailFragment extends DialogFragment {
return false;
}
}
+
+ @Override
+ public void onCancel(DialogInterface dialog) {
+ super.onCancel(dialog);
+ ConfigHelper.removeFromSharedPref(ConfigHelper.PROVIDER_KEY);
+ }
public static DialogFragment newInstance() {
ProviderDetailFragment provider_detail_fragment = new ProviderDetailFragment();