private boolean initEventCursor(){
  if ((mEventCursor == null) || (mEventCursor.getCount() == 0)) {
    return true;
  }
  mEventCursor.moveToFirst();
  mEventId=mEventCursor.getInt(EVENT_INDEX_ID);
  String rRule=mEventCursor.getString(EVENT_INDEX_RRULE);
  mIsRepeating=!TextUtils.isEmpty(rRule);
  mHasAlarm=(mEventCursor.getInt(EVENT_INDEX_HAS_ALARM) == 1) ? true : (mReminders != null && mReminders.size() > 0);
  mMaxReminders=mEventCursor.getInt(EVENT_INDEX_MAX_REMINDERS);
  mCalendarAllowedReminders=mEventCursor.getString(EVENT_INDEX_ALLOWED_REMINDERS);
  return false;
}

private boolean initEventCursor ( ) { if ( ( mEventCursor == null ) || ( mEventCursor . getCount ( ) == 0 ) ) { return true ; } mEventCursor . moveToFirst ( ) ; mEventId = mEventCursor . getInt ( EVENT_INDEX_ID ) ; String rRule = mEventCursor . getString ( EVENT_INDEX_RRULE ) ; mIsRepeating = ! TextUtils . isEmpty ( rRule ) ; mHasAlarm = ( mEventCursor . getInt ( EVENT_INDEX_HAS_ALARM ) == 1 ) ? true : ( mReminders != null && mReminders . size ( ) > 0 ) ; mMaxReminders = mEventCursor . getInt ( EVENT_INDEX_MAX_REMINDERS ) ; mCalendarAllowedReminders = mEventCursor . getString ( EVENT_INDEX_ALLOWED_REMINDERS ) ; return false ; }
initializes the event cursor , which is expected to point to the first ( and only ) result from a query .
