@Override public void onDismiss(AbsListView listView, int[] reverseSortedPositions) { for (int position : reverseSortedPositions) { mAdapter.remove(position); } Toast.makeText( this, "Removed positions: " + Arrays.toString(reverseSortedPositions), Toast.LENGTH_SHORT) .show(); }
@Override public void deleteItem(int position) { mAdapter.remove(position); mAdapter.notifyDataSetChanged(); }
@Override public void remove(RecordingItem item) { mDatabase.removeItemWithId(item.getId()); super.remove(item); }