b/5117661 set allowedReminders for new calendars
Change-Id: Ifd32cfbc75c0885693fc830c65a0c3feba99e249
diff --git a/src/com/android/exchange/utility/CalendarUtilities.java b/src/com/android/exchange/utility/CalendarUtilities.java
index f381e42..eb62d0a 100644
--- a/src/com/android/exchange/utility/CalendarUtilities.java
+++ b/src/com/android/exchange/utility/CalendarUtilities.java
@@ -120,6 +120,7 @@
private static HashMap<TimeZone, String> sTziStringCache = new HashMap<TimeZone, String>();
private static final TimeZone UTC_TIMEZONE = TimeZone.getTimeZone("UTC");
+ private static final String ALLOWED_REMINDER_TYPES = "0,1";
// There is no type 4 (thus, the "")
static final String[] sTypeToFreq =
@@ -1321,6 +1322,7 @@
cv.put(Calendars.CAN_ORGANIZER_RESPOND, 0);
cv.put(Calendars.CAN_MODIFY_TIME_ZONE, 0);
cv.put(Calendars.MAX_REMINDERS, 1);
+ cv.put(Calendars.ALLOWED_REMINDERS, ALLOWED_REMINDER_TYPES);
// TODO Coordinate account colors w/ Calendar, if possible
int color = new AccountServiceProxy(service.mContext).getAccountColor(account.mId);