class TravelTimePicker extends DialogFragment {

    public TravelTimePicker setMaxDate(long maxDate) {
        mMaxDate = maxDate;
        if (mDatePicker != null) {
            mDatePicker.setMaxDate(maxDate);
        }
        return this;
    }

}