public void show(Milestone selectedMilestone) {
        milestoneSingle.subscribe(milestones -> {
            int checked = -1;
            if (selectedMilestone != null) {
                for (int i = 0; i < milestones.size(); i++) {
                    if (selectedMilestone.number() == milestones.get(i).number()) {
                        checked = i;
                        break;
                    }
                }
            }
            MilestoneDialogFragment.show(activity, requestCode,
                    activity.getString(R.string.select_milestone), null,
                    new ArrayList<>(milestones), checked);
        }, error -> {
            Log.e(TAG, "Exception loading milestones", error);
            ToastUtils.show(activity, R.string.error_milestones_load);
        });
    }
Show dialog with given milestone selected

@param selectedMilestone
app/src/main/java/com/github/pockethub/android/ui/issue/MilestoneDialog.java