aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/src')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt
index 03a4220..21fc62e 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt
@@ -261,6 +261,7 @@ class UnitReportsFragment : Fragment() {
fromPickedDatetime = LocalDateTime(p1, p2, p3, from.hour, from.minute)
fromTimePicker.show()
}, from.year, from.monthNumber, from.dayOfMonth)
+ fromDatePicker.datePicker.maxDate = Calendar.getInstance().timeInMillis
fromTimePicker = TimePickerDialog(requireContext(), { p0, p1, p2 ->
fromPickedDatetime = LocalDateTime(
@@ -278,6 +279,7 @@ class UnitReportsFragment : Fragment() {
toPickedDatetime = LocalDateTime(p1, p2, p3, from.hour, from.minute)
toTimePicker.show()
}, to.year, to.monthNumber, to.dayOfMonth)
+ toDatePicker.datePicker.maxDate = Calendar.getInstance().timeInMillis
toTimePicker = TimePickerDialog(requireContext(), { p0, p1, p2 ->
toPickedDatetime = LocalDateTime(
@@ -290,6 +292,7 @@ class UnitReportsFragment : Fragment() {
unitReportsViewModel.setReportPeriod(it.withFrom(fromPickedDatetime))
}
}, to.hour, to.minute, false)
+
}
unitReportsViewModel.geofences.observe(viewLifecycleOwner) { geofences ->