summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorfupduck <fupduck@riseup.net>2018-03-23 10:28:59 -0700
committerfupduck <fupduck@riseup.net>2018-03-23 10:28:59 -0700
commitf01db500f029321d0aa6894ead3f989917219229 (patch)
treeaf72e66cd78792aecbb87295252176d9c979732a /app
parent434c1dd799b11770db148c405845c790b9e2e469 (diff)
parent0412aee468bef0c25c3a42672a67cbfdc4152d66 (diff)
Merge branch '#8892_clean_up_ProviderListActivity' into 'master'
#8892 clean up ProviderListActivity in insecure flavor See merge request leap/bitmask_android!70
Diffstat (limited to 'app')
-rw-r--r--app/src/insecure/java/se/leap/bitmaskclient/ProviderListActivity.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/src/insecure/java/se/leap/bitmaskclient/ProviderListActivity.java b/app/src/insecure/java/se/leap/bitmaskclient/ProviderListActivity.java
index 02f76240..67565d70 100644
--- a/app/src/insecure/java/se/leap/bitmaskclient/ProviderListActivity.java
+++ b/app/src/insecure/java/se/leap/bitmaskclient/ProviderListActivity.java
@@ -50,25 +50,9 @@ public class ProviderListActivity extends ProviderListBaseActivity {
preferences.edit().remove(ProviderItem.DANGER_ON).apply();
}
- /**
- * Open the new provider dialog with data
- */
- public void addAndSelectNewProvider(String mainUrl, boolean danger_on) {
- FragmentTransaction fragment_transaction = fragmentManager.removePreviousFragment(NewProviderDialog.TAG);
-
- DialogFragment newFragment = new NewProviderDialog();
- Bundle data = new Bundle();
- data.putString(Provider.MAIN_URL, mainUrl);
- data.putBoolean(ProviderItem.DANGER_ON, danger_on);
- newFragment.setArguments(data);
- newFragment.show(fragment_transaction, NewProviderDialog.TAG);
- }
-
public void showAndSelectProvider(String provider_main_url, boolean danger_on) {
try {
provider = new Provider(new URL((provider_main_url)));
- adapter.add(provider);
- adapter.saveProviders();
autoSelectProvider(provider, danger_on);
} catch (MalformedURLException e) {
e.printStackTrace();