private void cacheEvent ( WeekViewEvent event ) { if ( event . getStartTime ( ) . compareTo ( event . getEndTime ( ) ) >= 0 ) return ; List < WeekViewEvent > splitedEvents = event . splitWeekViewEvents ( ) ; for ( WeekViewEvent splitedEvent : splitedEvents ) { mEventRects . add ( new EventRect ( splitedEvent , event , null ) ) ; } }
Cache the event for smooth scrolling functionality .