summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java24
1 files changed, 6 insertions, 18 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java b/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java
index 92b2ae2e..8360954b 100644
--- a/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java
+++ b/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java
@@ -79,25 +79,13 @@ public class ProviderListAdapter extends RendererAdapter<Provider> {
return (hidden.length - getHiddenCount());
}
- public ProviderListAdapter(LayoutInflater layoutInflater, RendererBuilder rendererBuilder,
+ public ProviderListAdapter(LayoutInflater layoutInflater, RendererBuilder rendererBuilder,
AdapteeCollection<Provider> collection) {
- super(layoutInflater, rendererBuilder, collection);
- if(hidden == null) {
- hidden = new boolean[collection.size()];
- for (int i = 0; i < collection.size(); i++)
- hidden[i] = false;
- }
- }
-
- public ProviderListAdapter(LayoutInflater layoutInflater, RendererBuilder rendererBuilder,
- AdapteeCollection<Provider> collection, boolean show_all_providers) {
- super(layoutInflater, rendererBuilder, collection);
- if(show_all_providers) {
- hidden = new boolean[collection.size()];
- for (int i = 0; i < collection.size(); i++)
- hidden[i] = false;
- }
- }
+ super(layoutInflater, rendererBuilder, collection);
+ hidden = new boolean[collection.size()];
+ for (int i = 0; i < collection.size(); i++)
+ hidden[i] = false;
+ }
@Override
public void add(Provider item) {