@Override
    public void onItemClick(@NonNull Item item, @NonNull View view) {
        if (item instanceof LabelDialogItem) {
            LabelDialogItem labelDialogItem = (LabelDialogItem) item;

            labelDialogItem.toggleSelected();
            selectedChoices[adapter.getAdapterPosition(item)] = labelDialogItem.isSelected();
            item.notifyChanged();
        }
    }
Confirm message and deliver callback to given activity

@param activity
@param requestCode
@param title
@param message
@param choices
@param selectedChoices
app/src/main/java/com/github/pockethub/android/ui/issue/LabelsDialogFragment.java