public EditStateTask confirm(boolean close) {
        if (close) {
            ConfirmDialogFragment.show(activity, ISSUE_CLOSE, activity.getString(R.string.issue_confirm_close_title),
                    activity.getString(R.string.issue_confirm_close_message));
        } else {
            ConfirmDialogFragment.show(activity, ISSUE_REOPEN, activity.getString(R.string.issue_confirm_reopen_title),
                    activity.getString(R.string.issue_confirm_reopen_message));
        }

        return this;
    }
Confirm action

@param close
@return this task
app/src/main/java/com/github/pockethub/android/ui/issue/EditStateTask.java