Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Commit b95c330

Browse files
committed
Don't allow selecting dates in the past for watchers
- When using a date/time picker, don't allow choosing a date in the past
1 parent 6168936 commit b95c330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/nl/jpelgrm/movienotifier/ui/WatcherActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public void onTimeSet(TimePicker timePicker, int hour, int minute) {
660660
timePickerDialog.show();
661661
}
662662
}, current.get(Calendar.YEAR), current.get(Calendar.MONTH), current.get(Calendar.DAY_OF_MONTH));
663-
//datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000L);
663+
datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000L);
664664
datePickerDialog.show();
665665
}
666666

0 commit comments

Comments
 (0)