@Override public void execute() throws Exception { crossReference = myLibrarian.getCrossReference(bReference); if (PreferenceHelper.crossRefViewDetails()) { crossReferenceContent = myLibrarian.getCrossReferenceContent(crossReference.values()); } }
private void setListAdapter() { List<Item> items = new ArrayList<Item>(); for (String link : crossReference.keySet()) { if (PreferenceHelper.crossRefViewDetails()) { items.add(new SubtextItem(link, crossReferenceContent.get(crossReference.get(link)))); } else { items.add(new TextItem(link)); } } ItemAdapter adapter = new ItemAdapter(this, items); LV.setAdapter(adapter); }