diff options
author | cyBerta <richy@cyborgsociety.org> | 2013-12-21 00:38:00 +0100 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-12-21 00:38:00 +0100 |
commit | b2efaf181fb7833206e97f64eb29400057a7d7ed (patch) | |
tree | e7a2715313e7a9b7786606280081f7dace026a5f /src/se/leap/bitmaskclient/NewProviderDialog.java | |
parent | 31e0ee7819ff6e852bc40f66858f0ac02659bf04 (diff) | |
parent | 16ac5c300e21ce4c8b380013735f2c17d2e34768 (diff) |
Merge branch 'bug/more-detailed-response-to-CW-errors' into develop
Diffstat (limited to 'src/se/leap/bitmaskclient/NewProviderDialog.java')
-rw-r--r-- | src/se/leap/bitmaskclient/NewProviderDialog.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/NewProviderDialog.java b/src/se/leap/bitmaskclient/NewProviderDialog.java index 98686bd2..cf09c64b 100644 --- a/src/se/leap/bitmaskclient/NewProviderDialog.java +++ b/src/se/leap/bitmaskclient/NewProviderDialog.java @@ -16,6 +16,7 @@ */ package se.leap.bitmaskclient; +import se.leap.bitmaskclient.ProviderListContent.ProviderItem; import se.leap.bitmaskclient.R; import android.app.Activity; import android.app.AlertDialog; @@ -71,7 +72,14 @@ public class NewProviderDialog extends DialogFragment { LayoutInflater inflater = getActivity().getLayoutInflater(); View new_provider_dialog_view = inflater.inflate(R.layout.new_provider_dialog, null); final EditText url_input_field = (EditText)new_provider_dialog_view.findViewById(R.id.new_provider_url); + if(getArguments() != null && getArguments().containsKey(Provider.MAIN_URL)) { + url_input_field.setText(getArguments().getString(Provider.MAIN_URL)); + } final CheckBox danger_checkbox = (CheckBox)new_provider_dialog_view.findViewById(R.id.danger_checkbox); + if(getArguments() != null && getArguments().containsKey(ProviderItem.DANGER_ON)) { + danger_checkbox.setActivated(getArguments().getBoolean(ProviderItem.DANGER_ON)); + } + builder.setView(new_provider_dialog_view) .setMessage(R.string.introduce_new_provider) .setPositiveButton(R.string.save, new DialogInterface.OnClickListener() { |