Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions library/src/main/java/com/alamkanak/weekview/WeekView.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,9 @@ private void drawHeaderRowAndEvents(Canvas canvas) {
mWidthPerDay = mWidthPerDay/mNumberOfVisibleDays;

calculateHeaderHeight(); //Make sure the header is the right size (depends on AllDay events)

Calendar today = today();

// Android Studio Rendering Problems #393 credit Rexcantor
Calendar today = today(); if(today == null) today = new GregorianCalendar(2000, 1, 1);

if (mAreDimensionsInvalid) {
mEffectiveMinHourHeight= Math.max(mMinHourHeight, (int) ((getHeight() - mHeaderHeight - mHeaderRowPadding * 2 - mHeaderMarginBottom) / 24));
Expand Down