mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 01:39:22 +02:00
Fix off by one for rule expire months
This commit is contained in:
parent
bd3ca9bd43
commit
ee0644e85c
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ class DatePickerDialogFragment: DialogFragment() {
|
|||
val requestKey = requireArguments().getString(REQUEST_KEY)!!
|
||||
|
||||
return DatePickerDialog(requireContext(), theme, { _, year, month, day ->
|
||||
setFragmentResult(requestKey, Result(year, month, day).bundle)
|
||||
}, startYear, startMonthOfYear, startDayOfMonth)
|
||||
setFragmentResult(requestKey, Result(year, month + 1, day).bundle)
|
||||
}, startYear, startMonthOfYear - 1, startDayOfMonth)
|
||||
}
|
||||
|
||||
fun show(fragmentManager: FragmentManager) = showSafe(fragmentManager, DIALOG_TAG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue