Skip to content

Commit 5312d08

Browse files
alonalbertAndroid (Google) Code Review
authored andcommitted
Merge "Add new Reminder Method: Alarm"
2 parents 41c31ef + bd25161 commit 5312d08

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16080,6 +16080,7 @@ package android.provider {
1608016080
protected static abstract interface CalendarContract.RemindersColumns {
1608116081
field public static final java.lang.String EVENT_ID = "event_id";
1608216082
field public static final java.lang.String METHOD = "method";
16083+
field public static final int METHOD_ALARM = 4; // 0x4
1608316084
field public static final int METHOD_ALERT = 1; // 0x1
1608416085
field public static final int METHOD_DEFAULT = 0; // 0x0
1608516086
field public static final int METHOD_EMAIL = 2; // 0x2

core/java/android/provider/CalendarContract.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ protected interface CalendarColumns {
402402
* A comma separated list of reminder methods supported for this
403403
* calendar in the format "#,#,#". Valid types are
404404
* {@link Reminders#METHOD_DEFAULT}, {@link Reminders#METHOD_ALERT},
405-
* {@link Reminders#METHOD_EMAIL}, {@link Reminders#METHOD_SMS}. Column
406-
* name.
405+
* {@link Reminders#METHOD_EMAIL}, {@link Reminders#METHOD_SMS},
406+
* {@link Reminders#METHOD_ALARM}. Column name.
407407
* <P>Type: TEXT</P>
408408
*/
409409
public static final String ALLOWED_REMINDERS = "allowedReminders";
@@ -1930,18 +1930,19 @@ protected interface RemindersColumns {
19301930

19311931
/**
19321932
* The alarm method, as set on the server. {@link #METHOD_DEFAULT},
1933-
* {@link #METHOD_ALERT}, {@link #METHOD_EMAIL}, and {@link #METHOD_SMS}
1934-
* are possible values; the device will only process
1935-
* {@link #METHOD_DEFAULT} and {@link #METHOD_ALERT} reminders (the
1936-
* other types are simply stored so we can send the same reminder info
1937-
* back to the server when we make changes).
1933+
* {@link #METHOD_ALERT}, {@link #METHOD_EMAIL}, {@link #METHOD_SMS} and
1934+
* {@link #METHOD_ALARM} are possible values; the device will only
1935+
* process {@link #METHOD_DEFAULT} and {@link #METHOD_ALERT} reminders
1936+
* (the other types are simply stored so we can send the same reminder
1937+
* info back to the server when we make changes).
19381938
*/
19391939
public static final String METHOD = "method";
19401940

19411941
public static final int METHOD_DEFAULT = 0;
19421942
public static final int METHOD_ALERT = 1;
19431943
public static final int METHOD_EMAIL = 2;
19441944
public static final int METHOD_SMS = 3;
1945+
public static final int METHOD_ALARM = 4;
19451946
}
19461947

19471948
/**

0 commit comments

Comments
 (0)