From a3f61aeae7c0786a24cf7d6dc06cf9289d04349d Mon Sep 17 00:00:00 2001 From: cubandle Date: Fri, 13 Jan 2023 20:47:22 -0500 Subject: [PATCH] Allow future dates in Addiction datepicker With the future tracking implemented in the app, there is no reason to constrain the datepicker to the current month. --- app/src/main/java/com/katiearose/sobriety/activities/Create.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/katiearose/sobriety/activities/Create.kt b/app/src/main/java/com/katiearose/sobriety/activities/Create.kt index f65f914..24b1380 100644 --- a/app/src/main/java/com/katiearose/sobriety/activities/Create.kt +++ b/app/src/main/java/com/katiearose/sobriety/activities/Create.kt @@ -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(