use of edu.berkeley.cs.amplab.carat.android.lists.HogBugSuggestionsAdapter in project carat by amplab.
the class SuggestionsFragment method refresh.
public void refresh() {
SimpleHogBug[] hogReport, bugReport;
hogReport = CaratApplication.storage.getHogReport();
bugReport = CaratApplication.storage.getBugReport();
if (hogReport.length == 0 && bugReport.length == 0)
return;
CaratApplication caratAppllication = (CaratApplication) CaratApplication.getMainActivity().getApplication();
final ListView lv = (ListView) root.findViewById(android.R.id.list);
lv.setAdapter(new HogBugSuggestionsAdapter(caratAppllication, hogReport, bugReport));
}
Aggregations