diff options
author | Parménides GV <parmegv@sdf.org> | 2013-10-03 16:41:53 +0200 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-11-15 23:25:17 +0100 |
commit | 76d52773a237da8fcae3670a959bbe2bfe609796 (patch) | |
tree | 9c55428d69537f98b4bdb7b7ff668fc0eb4c3a9b /src/se/leap/leapclient | |
parent | 180b4d31526e442dd4978ca321a304f26b32240c (diff) |
Switching provider offers all providers from list.
This fixes bug #4004: With new progress bars branch, if user switches provider the list of providers is not complete.
Diffstat (limited to 'src/se/leap/leapclient')
-rw-r--r-- | src/se/leap/leapclient/ProviderListAdapter.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/ProviderListAdapter.java b/src/se/leap/leapclient/ProviderListAdapter.java index e8782130..baaa10ba 100644 --- a/src/se/leap/leapclient/ProviderListAdapter.java +++ b/src/se/leap/leapclient/ProviderListAdapter.java @@ -70,6 +70,16 @@ public class ProviderListAdapter<T> extends ArrayAdapter<T> { hidden[i] = false; } } + + public ProviderListAdapter(Context mContext, int layout, List<T> objects, boolean show_all_providers) { + super(mContext, layout, objects); + items = objects.toArray((T[])new Object[0]); + if(show_all_providers) { + hidden = new boolean[items.length]; + for (int i = 0; i < items.length; i++) + hidden[i] = false; + } + } @Override public void add(T item) { |