Skip to content

Commit

Permalink
Merge pull request #136 from subbuboyapati/master
Browse files Browse the repository at this point in the history
Fix issue #132
  • Loading branch information
alamkanak committed Jun 11, 2015
2 parents e570d54 + 892133c commit 8aa4ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/com/alamkanak/weekview/WeekView.java
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private void drawHeaderRowAndEvents(Canvas canvas) {

// If the week view is being drawn for the first time, then consider the first day of the week.
if(mNumberOfVisibleDays >= 7 && mToday.get(Calendar.DAY_OF_WEEK) != mFirstDayOfWeek) {
int difference = 7 + (mToday.get(Calendar.DAY_OF_WEEK) - mFirstDayOfWeek);
int difference = (7 + (mToday.get(Calendar.DAY_OF_WEEK) - mFirstDayOfWeek)) % 7;
mCurrentOrigin.x += (mWidthPerDay + mColumnGap) * difference;
}
}
Expand Down

0 comments on commit 8aa4ec6

Please sign in to comment.