I have created a datepicker and set the max date to the current date but I am getting a weird bug. It shows the next month and next day below the wheel when nothing should be there. When you try to scroll to them they disappear and are not selectable.
my datepicker code:
DatePickerDialog dialog = new DatePickerDialog(this, datePickerListener, year, month, day);
dialog.getDatePicker().setMaxDate(new Date().getTime());
return dialog;
how im getting year, month, day:
final Calendar c = Calendar.getInstance();
year = c.get(Calendar.YEAR);
month = c.get(Calendar.MONTH);
day = c.get(Calendar.DAY_OF_MONTH);
Here is a picture of what is happening