diff options
author | Parménides GV <parmegv@sdf.org> | 2013-10-14 17:05:06 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-12-09 19:27:57 +0100 |
commit | b61c632cb90b87cc7b069f42f2b08928ee15a5d5 (patch) | |
tree | 237ef2d89b0c4f9196db864e3f9e55436f56f259 /src/se/leap/bitmaskclient/ProviderListFragment.java | |
parent | 9a33e4ccff4cf148a1a3ac3bbf20fcaf0238f24b (diff) |
ProviderAPI broadcasts progress to CW.
Setting up a provider makes the progressbar move according to the number of files downloaded (1/3, 2/3, 3/3).
Next step: recover from download errors individually. That means that if a download fails but the others went OK, the user will be prompted to retry that individual failing download.
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderListFragment.java')
-rw-r--r-- | src/se/leap/bitmaskclient/ProviderListFragment.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderListFragment.java b/src/se/leap/bitmaskclient/ProviderListFragment.java index 6a0f2a05..862177a2 100644 --- a/src/se/leap/bitmaskclient/ProviderListFragment.java +++ b/src/se/leap/bitmaskclient/ProviderListFragment.java @@ -202,8 +202,12 @@ public class ProviderListFragment extends ListFragment { content_adapter.notifyDataSetChanged();
}
- public void hide(int position) {
- content_adapter.hide(position);
+ public void hideAllBut(int position) {
+ for(int i = 0; i < content_adapter.getCount(); i++)
+ if(i != position)
+ content_adapter.hide(i);
+ else
+ content_adapter.unHide(i);
}
public void unhideAll() {
|