diff --git a/app/src/main/java/com/android/calendar/ImportActivity.java b/app/src/main/java/com/android/calendar/ImportActivity.java index fa89b44579..c55f31c6fc 100644 --- a/app/src/main/java/com/android/calendar/ImportActivity.java +++ b/app/src/main/java/com/android/calendar/ImportActivity.java @@ -162,6 +162,8 @@ private void parseCalFile() { IcalendarUtils.uncleanseString(firstEvent.getProperty(VEvent.URL))); 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/app/src/main/java/com/android/calendar/icalendar/VEvent.java b/app/src/main/java/com/android/calendar/icalendar/VEvent.java index 6027a5b76b..09d3b7f92e 100644 --- a/app/src/main/java/com/android/calendar/icalendar/VEvent.java +++ b/app/src/main/java/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"; // Stores the -arity of the attributes that this component can have private static HashMap sPropertyList = new HashMap(); @@ -66,6 +67,7 @@ public class VEvent { sPropertyList.put(DTSTAMP,1); sPropertyList.put(SUMMARY,1); sPropertyList.put(DESCRIPTION,1); + sPropertyList.put(RRULE, 1); sPropertyList.put(ATTENDEE, Integer.MAX_VALUE); sPropertyList.put(CATEGORIES, Integer.MAX_VALUE);