|
|
@ -37,26 +37,26 @@ public class DetailsAdapter extends MergeAdapter { |
|
|
|
// Torrent details header
|
|
|
|
// Torrent details header
|
|
|
|
torrentDetailsView = TorrentDetailsView_.build(context); |
|
|
|
torrentDetailsView = TorrentDetailsView_.build(context); |
|
|
|
torrentDetailsView.setVisibility(View.GONE); |
|
|
|
torrentDetailsView.setVisibility(View.GONE); |
|
|
|
addView(torrentDetailsView, true); |
|
|
|
addView(torrentDetailsView, false); |
|
|
|
|
|
|
|
|
|
|
|
// Trackers
|
|
|
|
// Trackers
|
|
|
|
trackersSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_trackers)); |
|
|
|
trackersSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_trackers)); |
|
|
|
trackersSeparatorView.setVisibility(View.GONE); |
|
|
|
trackersSeparatorView.setVisibility(View.GONE); |
|
|
|
addView(trackersSeparatorView, true); |
|
|
|
addView(trackersSeparatorView, false); |
|
|
|
this.trackersAdapter = new SimpleListItemAdapter(context, new ArrayList<SimpleListItem>()); |
|
|
|
this.trackersAdapter = new SimpleListItemAdapter(context, new ArrayList<SimpleListItem>()); |
|
|
|
addAdapter(trackersAdapter); |
|
|
|
addAdapter(trackersAdapter); |
|
|
|
|
|
|
|
|
|
|
|
// Tracker errors
|
|
|
|
// Tracker errors
|
|
|
|
errorsSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_errors)); |
|
|
|
errorsSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_errors)); |
|
|
|
errorsSeparatorView.setVisibility(View.GONE); |
|
|
|
errorsSeparatorView.setVisibility(View.GONE); |
|
|
|
addView(errorsSeparatorView, true); |
|
|
|
addView(errorsSeparatorView, false); |
|
|
|
this.errorsAdapter = new SimpleListItemAdapter(context, new ArrayList<SimpleListItem>()); |
|
|
|
this.errorsAdapter = new SimpleListItemAdapter(context, new ArrayList<SimpleListItem>()); |
|
|
|
addAdapter(errorsAdapter); |
|
|
|
addAdapter(errorsAdapter); |
|
|
|
|
|
|
|
|
|
|
|
// Torrent files
|
|
|
|
// Torrent files
|
|
|
|
torrentFilesSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_files)); |
|
|
|
torrentFilesSeparatorView = FilterSeparatorView_.build(context).setText(context.getString(R.string.status_files)); |
|
|
|
torrentFilesSeparatorView.setVisibility(View.GONE); |
|
|
|
torrentFilesSeparatorView.setVisibility(View.GONE); |
|
|
|
addView(torrentFilesSeparatorView, true); |
|
|
|
addView(torrentFilesSeparatorView, false); |
|
|
|
this.torrentFilesAdapter = new TorrentFilesAdapter(context, new ArrayList<TorrentFile>()); |
|
|
|
this.torrentFilesAdapter = new TorrentFilesAdapter(context, new ArrayList<TorrentFile>()); |
|
|
|
addAdapter(torrentFilesAdapter); |
|
|
|
addAdapter(torrentFilesAdapter); |
|
|
|
|
|
|
|
|
|
|
|