use of com.github.pockethub.android.ui.item.dialog.RefDialogItem in project PocketHub by pockethub.
the class RefDialogFragment method onCreateDialog.
@NonNull
@Override
public Dialog onCreateDialog(final Bundle savedInstanceState) {
int selected = getArguments().getInt(ARG_SELECTED_CHOICE);
GroupAdapter adapter = new GroupAdapter();
for (GitReference ref : getChoices()) {
adapter.add(new RefDialogItem(ref, selected));
}
adapter.setOnItemClickListener(this);
return createDialogBuilder().adapter(adapter, null).negativeText(R.string.cancel).build();
}
Aggregations