Skip to content

Commit bd25161

Browse files
committed
Add new Reminder Method: Alarm
Change-Id: I7c0bc3c7eb1cc3b76900a04760ace52a5535b617
1 parent 3949061 commit bd25161

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
@@ -16059,6 +16059,7 @@ package android.provider {
1605916059
protected static abstract interface CalendarContract.RemindersColumns {
1606016060
field public static final java.lang.String EVENT_ID = "event_id";
1606116061
field public static final java.lang.String METHOD = "method";
16062+
field public static final int METHOD_ALARM = 4; // 0x4
1606216063
field public static final int METHOD_ALERT = 1; // 0x1
1606316064
field public static final int METHOD_DEFAULT = 0; // 0x0
1606416065
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)