use of com.github.pockethub.android.ui.item.dialog.AssigneeDialogItem in project PocketHub by pockethub.
the class AssigneeDialogFragment method onCreateDialog.
@NonNull
@Override
public Dialog onCreateDialog(final Bundle savedInstanceState) {
int selected = getArguments().getInt(ARG_SELECTED_CHOICE);
GroupAdapter adapter = new GroupAdapter();
for (User user : getChoices()) {
adapter.add(new AssigneeDialogItem(avatars, user, selected));
}
adapter.setOnItemClickListener(this);
return createDialogBuilder().adapter(adapter, null).negativeText(R.string.cancel).neutralText(R.string.clear).onNeutral((dialog, which) -> onResult(RESULT_OK)).build();
}
Aggregations