Search in sources :

Example 1 with HogBugSuggestionsAdapter

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));
}
Also used : ListView(android.widget.ListView) HogBugSuggestionsAdapter(edu.berkeley.cs.amplab.carat.android.lists.HogBugSuggestionsAdapter) SimpleHogBug(edu.berkeley.cs.amplab.carat.android.storage.SimpleHogBug) CaratApplication(edu.berkeley.cs.amplab.carat.android.CaratApplication)

Aggregations

ListView (android.widget.ListView)1 CaratApplication (edu.berkeley.cs.amplab.carat.android.CaratApplication)1 HogBugSuggestionsAdapter (edu.berkeley.cs.amplab.carat.android.lists.HogBugSuggestionsAdapter)1 SimpleHogBug (edu.berkeley.cs.amplab.carat.android.storage.SimpleHogBug)1