diff options
author | lalottacontinua <loddatio@posteo.de> | 2018-05-22 22:53:07 +0200 |
---|---|---|
committer | lalottacontinua <loddatio@posteo.de> | 2018-05-22 22:53:07 +0200 |
commit | 9c2599bda6e1e9809f57610c6450b166016f5a4d (patch) | |
tree | 4ac2fd4c99b4a9f7d93fd57379b7d53de420bc2e /app/src/main/java | |
parent | 20cde35143f5e9f2808e361ebb674c3bb26feafe (diff) |
false url displayed when retry clicked
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java | 4 | ||||
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/ProviderSetupFailedDialog.java | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java b/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java index 756264ec..c2345ec1 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java @@ -196,7 +196,9 @@ public abstract class ProviderListBaseActivity extends ConfigWizardBaseActivity } else if (requestCode == REQUEST_CODE_ADD_PROVIDER) { if (resultCode == RESULT_OK) { testNewURL = true; - showAndSelectProvider(data.getStringExtra("new_url")); + String newUrl = data.getStringExtra("new_url"); + this.provider.setMainUrl(newUrl); + showAndSelectProvider(newUrl); } } } diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderSetupFailedDialog.java b/app/src/main/java/se/leap/bitmaskclient/ProviderSetupFailedDialog.java index 3d0bdbdb..3cfae776 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderSetupFailedDialog.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderSetupFailedDialog.java @@ -129,7 +129,7 @@ public class ProviderSetupFailedDialog extends DialogFragment { case ERROR_NEW_URL_NO_VPN_PROVIDER: builder.setPositiveButton(R.string.retry, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { - interfaceWithConfigurationWizard.addAndSelectNewProvider(provider.getApiUrlString()); + interfaceWithConfigurationWizard.addAndSelectNewProvider(provider.getMainUrlString()); } }); break; |