@Override public List<Day> loadInBackground() { return DatabaseManager.getInstance().getDays(); }
@Override protected List<Day> getCachedResult() { return DatabaseManager.getInstance().getCachedDays(); }
@Override public void bindView(View view, Context context, Cursor cursor) { ViewHolder holder = (ViewHolder) view.getTag(); holder.person = DatabaseManager.toPerson(cursor, holder.person); holder.textView.setText(holder.person.getName()); }
@Override protected Cursor getCursor() { return DatabaseManager.getInstance().getPersons(); }
@Override public Person getItem(int position) { return DatabaseManager.toPerson((Cursor) super.getItem(position)); }