Skip to content

Commit 8f8b73a

Browse files
author
Jens Claes
committed
Merge branch 'BetterGoToDateAndHour' into quivr-master
Conflicts: library/src/main/java/com/alamkanak/weekview/WeekView.java
2 parents 95581d6 + 8b92d78 commit 8f8b73a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,12 @@ private void drawHeaderRowAndEvents(Canvas canvas) {
418418

419419
if (mAreDimensionsInvalid) {
420420
mAreDimensionsInvalid = false;
421+
double scrollToHour = mScrollToHour;
421422

422423
if(mScrollToDay != null)
423424
goToDate(mScrollToDay);
424-
if(mScrollToHour >= 0)
425-
goToHour(mScrollToHour);
425+
if(scrollToHour >= 0)
426+
goToHour(scrollToHour);
426427
}
427428
if (mIsFirstDraw){
428429
mIsFirstDraw = false;

0 commit comments

Comments
 (0)