Skip to content

Commit

Permalink
Merge pull request #78 from cubandle/datepicker_future
Browse files Browse the repository at this point in the history
Allow future dates in Addiction datepicker
  • Loading branch information
KiARC committed Jan 14, 2023
2 parents d94d963 + eb655bd commit 0f6c009
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class Create : AppCompatActivity() {
private fun pickDate() {
val datePicker = MaterialDatePicker.Builder.datePicker()
.setTitleText(R.string.pick_starting_date)
.setCalendarConstraints(CalendarConstraints.Builder().setEnd(System.currentTimeMillis()).build())
.build()
datePicker.addOnPositiveButtonClickListener {
startDateTime = ZonedDateTime.of(
Expand Down

0 comments on commit 0f6c009

Please sign in to comment.