use of edu.berkeley.cs.amplab.carat.android.lists.HogsBugsAdapter in project carat by amplab.
the class BugsOrHogsFragment method refresh.
public void refresh() {
if (getActivity() == null)
Log.e("BugsOrHogsFragment", "unable to get activity");
CaratApplication app = (CaratApplication) getActivity().getApplication();
final ListView lv = (ListView) getActivity().findViewById(android.R.id.list);
if (isBugs) {
if (CaratApplication.storage.getBugReport().length == 0)
return;
else
lv.setAdapter(new HogsBugsAdapter(app, CaratApplication.storage.getBugReport()));
} else
lv.setAdapter(new HogsBugsAdapter(app, CaratApplication.storage.getHogReport()));
}
Aggregations