@Override public void remove(RecordingItem item) { mDatabase.removeItemWithId(item.getId()); super.remove(item); }
@Override public RecordingItem getItem(int position) { return mDatabase.getItemAt(position); }
public RecordingsAdapter(Context context) { super(); mContext = context; mDatabase = new RecordingsDatabase(context); mDatabase.setOnDatabaseChangedListener(this); }
@Override public int getCount() { return mDatabase.getCount(); }
public RecordingsAdapter(Context context, RecordingsDatabase database) { super(); mContext = context; mDatabase = database; mDatabase.setOnDatabaseChangedListener(this); }