Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix day selection mode in KalendarEndlos #175

Closed

Conversation

yogeshpaliyal
Copy link

Fixes #172

Add handling for RangeSelectionError.EndIsBeforeStart in onDayClicked function.

  • Import RangeSelectionError

    • Import RangeSelectionError in kalendar-endlos/src/main/java/com/himanshoe/kalendar/endlos/util/DayClick.kt.
  • Add onErrorRangeSelected parameter

    • Add onErrorRangeSelected parameter to onDayClicked function.
  • Handle end date before start date

    • Add a condition to trigger onErrorRangeSelected(RangeSelectionError.EndIsBeforeStart) when the end date is before the start date.

Fixes hi-manshu#172

Add handling for `RangeSelectionError.EndIsBeforeStart` in `onDayClicked` function.

* **Import RangeSelectionError**
  - Import `RangeSelectionError` in `kalendar-endlos/src/main/java/com/himanshoe/kalendar/endlos/util/DayClick.kt`.

* **Add onErrorRangeSelected parameter**
  - Add `onErrorRangeSelected` parameter to `onDayClicked` function.

* **Handle end date before start date**
  - Add a condition to trigger `onErrorRangeSelected(RangeSelectionError.EndIsBeforeStart)` when the end date is before the start date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kalendar Endlos, daySelectionMode: Incorrect selection
1 participant