diff options
author | Parménides GV <parmegv@ma.sdf.org> | 2013-06-25 17:55:22 +0200 |
---|---|---|
committer | Sean Leonard <meanderingcode@aetherislands.net> | 2013-06-26 22:44:56 -0600 |
commit | 6ada10858719786e489938b3124d1d6015a70421 (patch) | |
tree | e1cc08f6e2dc018ee4b77683367b5501afbaa411 /src/se/leap/leapclient/NewProviderDialog.java | |
parent | dff5aa6e1c4df4af012899df7bf26e4f20f3ab26 (diff) |
The added provider is selected automatically.
I've also removed a lot of finishes when things go wrong (so that it should be returning to the previous activity/fragment).
Diffstat (limited to 'src/se/leap/leapclient/NewProviderDialog.java')
-rw-r--r-- | src/se/leap/leapclient/NewProviderDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/se/leap/leapclient/NewProviderDialog.java b/src/se/leap/leapclient/NewProviderDialog.java index 678e805f..cf361719 100644 --- a/src/se/leap/leapclient/NewProviderDialog.java +++ b/src/se/leap/leapclient/NewProviderDialog.java @@ -22,7 +22,7 @@ import android.widget.Toast; public class NewProviderDialog extends DialogFragment { public interface NewProviderDialogInterface { - public void saveProvider(String url_provider, boolean danger_on); + public void saveAndSelectProvider(String url_provider, boolean danger_on); } NewProviderDialogInterface interface_with_ConfigurationWizard; @@ -64,7 +64,7 @@ public class NewProviderDialog extends DialogFragment { } boolean danger_on = danger_checkbox.isChecked(); if(validURL(entered_url)) { - interface_with_ConfigurationWizard.saveProvider(entered_url, danger_on); + interface_with_ConfigurationWizard.saveAndSelectProvider(entered_url, danger_on); Toast.makeText(getActivity().getApplicationContext(), R.string.valid_url_entered, Toast.LENGTH_LONG).show(); } else { url_input_field.setText(""); |