app/src/main/java/org/weibeld/nytexplore/dialog/DatePickerDialogFragment.java
@Override
    public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {
        // Write date into EditText and associate a MyDate object with the same EditText
        MyDate date = new MyDate(year, month, dayOfMonth);
        TextView et = getEditText();
        et.setText(date.format3());
        et.setTag(date);
        CheckBox cb = getCheckBox();
        if (!cb.isChecked()) cb.setChecked(true);
    }
// Called when the user selected a date from the date picker dialog
Called when the user selected a date from the date picker dialog
Called when the user selected a date from the date picker dialog
@Override
    public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {
        MyDate date = new MyDate(year, month, dayOfMonth);
        TextView et = getEditText();
        et.setText(date.format3());
        et.setTag(date);
        CheckBox cb = getCheckBox();
        if (!cb.isChecked()) cb.setChecked(true);
    }
@ Override public void onDateSet ( DatePicker view , int year , int month , int dayOfMonth ) { MyDate date = new MyDate ( year , month , dayOfMonth ) ; TextView et = getEditText ( ) ; et . setText ( date . format3 ( ) ) ; et . setTag ( date ) ; CheckBox cb = getCheckBox ( ) ; if ( ! cb . isChecked ( ) ) cb . setChecked ( true ) ; }
Called when the user selected a date from the date picker dialog
Called when the user selected a date from the date picker dialog
// Write date into EditText and associate a MyDate object with the same EditText