diff options
author | Parménides GV <parmegv@sdf.org> | 2014-12-09 21:01:50 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-12-09 21:01:50 +0100 |
commit | 2d764ff0261e902e3b41f7f5e1d79df52e51a1ac (patch) | |
tree | 7d4a77c960741a4ba2448fb920959e13e07f8347 /app/src/main/java | |
parent | 062e4c4597f947816282b1c9c5e63c034549f057 (diff) |
Bug in the add provider to the adapter fixed.
Refactored the new provider dialog too.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java b/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java index 19a9a089..c63e2edb 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderListAdapter.java @@ -90,7 +90,7 @@ public class ProviderListAdapter extends RendererAdapter<Provider> { @Override public void add(Provider item) { super.add(item); - if(getCollection().size() < hidden.length) { + if(getCollection().size() > hidden.length) { boolean[] new_hidden = new boolean[hidden.length + 1]; System.arraycopy(hidden, 0, new_hidden, 0, hidden.length); new_hidden[hidden.length] = false; |