@ Nullable public CalendarDay getSelectedDate ( ) { List < CalendarDay > dates = adapter . getSelectedDates ( ) ; if ( dates . isEmpty ( ) ) { return null ; } else { return dates . get ( dates . size ( ) - 1 ) ; } }
Get the currently selected date or null if no selection . Depending on the selection mode you might get different results .