Skip to content

Commit

Permalink
Fix issue where goToCurrentTime() was ignored if WeekView was scrol…
Browse files Browse the repository at this point in the history
…led to the current date, but not the current time
  • Loading branch information
thellmund committed Nov 10, 2020
1 parent a58f8c5 commit cd140f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/com/alamkanak/weekview/WeekView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ class WeekView @JvmOverloads constructor(
private fun goToDateWithCompletion(date: Calendar, onComplete: () -> Unit) {
val adjustedDate = viewState.getDateWithinDateRange(date)
if (adjustedDate.toEpochDays() == viewState.firstVisibleDate.toEpochDays()) {
onComplete()
return
}

Expand Down

0 comments on commit cd140f2

Please sign in to comment.