diff --git a/src/com/android/calendar/ImportActivity.java b/src/com/android/calendar/ImportActivity.java index e8f6bc098bc4a87e419585ad285f53888853634e..d305a009fdd7d167d165190ee4d9a48f91684140 100644 --- a/src/com/android/calendar/ImportActivity.java +++ b/src/com/android/calendar/ImportActivity.java @@ -158,6 +158,8 @@ public class ImportActivity extends Activity { IcalendarUtils.uncleanseString(firstEvent.getProperty(VEvent.DESCRIPTION))); calIntent.putExtra(CalendarContract.Events.ORGANIZER, IcalendarUtils.uncleanseString(firstEvent.getProperty(VEvent.ORGANIZER))); + calIntent.putExtra(CalendarContract.Events.RRULE, + IcalendarUtils.uncleanseString(firstEvent.getProperty(VEvent.RRULE))); if (firstEvent.mAttendees.size() > 0) { StringBuilder builder = new StringBuilder(); diff --git a/src/com/android/calendar/icalendar/VEvent.java b/src/com/android/calendar/icalendar/VEvent.java index 5098b771780445d42072143c4b2064fdb767661c..1bef91cd2ff27d8cee645be236a58b088603807b 100644 --- a/src/com/android/calendar/icalendar/VEvent.java +++ b/src/com/android/calendar/icalendar/VEvent.java @@ -45,6 +45,7 @@ public class VEvent { public static String DESCRIPTION = "DESCRIPTION"; public static String ATTENDEE = "ATTENDEE"; public static String CATEGORIES = "CATEGORIES"; + public static String RRULE = "RRULE"; // Recurrence rule, example: FREQ=WEEKLY;COUNT=10;BYDAY=MO // Stores the -arity of the attributes that this component can have private static HashMap sPropertyList = new HashMap(); @@ -66,10 +67,10 @@ public class VEvent { sPropertyList.put(DTSTAMP,1); sPropertyList.put(SUMMARY,1); sPropertyList.put(DESCRIPTION,1); - sPropertyList.put(ATTENDEE, Integer.MAX_VALUE); sPropertyList.put(CATEGORIES, Integer.MAX_VALUE); sPropertyList.put(CATEGORIES, Integer.MAX_VALUE); + sPropertyList.put(RRULE, 1); } // Stores attributes and their corresponding values belonging to the Event component