Skip to content

Commit 0ff6537

Browse files
alonalbertAndroid (Google) Code Review
authored andcommitted
Merge "Add columns to CalendarContract" into jb-mr1-dev
2 parents 888eb73 + 0a9a219 commit 0ff6537

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17179,6 +17179,7 @@ package android.provider {
1717917179
field public static final int CAL_ACCESS_ROOT = 800; // 0x320
1718017180
field public static final java.lang.String CAN_MODIFY_TIME_ZONE = "canModifyTimeZone";
1718117181
field public static final java.lang.String CAN_ORGANIZER_RESPOND = "canOrganizerRespond";
17182+
field public static final java.lang.String IS_PRIMARY = "isPrimary";
1718217183
field public static final java.lang.String MAX_REMINDERS = "maxReminders";
1718317184
field public static final java.lang.String OWNER_ACCOUNT = "ownerAccount";
1718417185
field public static final java.lang.String SYNC_EVENTS = "sync_events";
@@ -17270,6 +17271,7 @@ package android.provider {
1727017271
field public static final java.lang.String HAS_ALARM = "hasAlarm";
1727117272
field public static final java.lang.String HAS_ATTENDEE_DATA = "hasAttendeeData";
1727217273
field public static final java.lang.String HAS_EXTENDED_PROPERTIES = "hasExtendedProperties";
17274+
field public static final java.lang.String IS_ORGANIZER = "isOrganizer";
1727317275
field public static final java.lang.String LAST_DATE = "lastDate";
1727417276
field public static final java.lang.String LAST_SYNCED = "lastSynced";
1727517277
field public static final java.lang.String ORGANIZER = "organizer";

core/java/android/provider/CalendarContract.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,13 @@ protected interface CalendarColumns {
467467
*
468468
*/
469469
public static final String ALLOWED_ATTENDEE_TYPES = "allowedAttendeeTypes";
470+
471+
/**
472+
* Is this the primary calendar for this account. If this column is not explicitly set, the
473+
* provider will return 1 if {@link Calendars#ACCOUNT_NAME} is equal to
474+
* {@link Calendars#OWNER_ACCOUNT}.
475+
*/
476+
public static final String IS_PRIMARY = "isPrimary";
470477
}
471478

472479
/**
@@ -1205,6 +1212,14 @@ protected interface EventsColumns {
12051212
*/
12061213
public static final String ORGANIZER = "organizer";
12071214

1215+
/**
1216+
* Are we the organizer of this event. If this column is not explicitly set, the provider
1217+
* will return 1 if {@link #ORGANIZER} is equal to {@link Calendars#OWNER_ACCOUNT}.
1218+
* Column name.
1219+
* <P>Type: STRING</P>
1220+
*/
1221+
public static final String IS_ORGANIZER = "isOrganizer";
1222+
12081223
/**
12091224
* Whether the user can invite others to the event. The
12101225
* GUESTS_CAN_INVITE_OTHERS is a setting that applies to an arbitrary
@@ -1368,6 +1383,7 @@ public Entity getEntityAndIncrementCursor(Cursor cursor) throws RemoteException
13681383
DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CUSTOM_APP_PACKAGE);
13691384
DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CUSTOM_APP_URI);
13701385
DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ORGANIZER);
1386+
DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, IS_ORGANIZER);
13711387
DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, _SYNC_ID);
13721388
DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY);
13731389
DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, LAST_SYNCED);

0 commit comments

Comments
 (0)