summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-05-08 22:29:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-08 22:29:12 +0000
commit4755cb3e5d8012b5554369d0df25ba8634267aa2 (patch)
treeaf73931e08f40cbc6962f09e13b3b0b2fb54489c /core/java
parentd89a6b2abc38907a532da7dec073663da5a74e7c (diff)
parentcb9aa20bddbeebc3a052e40ca3b7d0a511fa8358 (diff)
downloadframeworks_base-4755cb3e5d8012b5554369d0df25ba8634267aa2.zip
frameworks_base-4755cb3e5d8012b5554369d0df25ba8634267aa2.tar.gz
frameworks_base-4755cb3e5d8012b5554369d0df25ba8634267aa2.tar.bz2
Merge "Zen: Tweak default automatic rules." into mnc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/service/notification/ZenModeConfig.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/service/notification/ZenModeConfig.java b/core/java/android/service/notification/ZenModeConfig.java
index 20b8cbe..599ac74 100644
--- a/core/java/android/service/notification/ZenModeConfig.java
+++ b/core/java/android/service/notification/ZenModeConfig.java
@@ -735,17 +735,20 @@ public class ZenModeConfig implements Parcelable {
&& conditionId.getPathSegments().get(0).equals(EVENT_PATH);
if (!isEvent) return null;
final EventInfo rt = new EventInfo();
- rt.calendar = tryParseLong(conditionId.getQueryParameter("calendar"), 0L);
+ rt.calendar = tryParseLong(conditionId.getQueryParameter("calendar"),
+ EventInfo.ANY_CALENDAR);
rt.reply = tryParseInt(conditionId.getQueryParameter("reply"), 0);
return rt;
}
public static class EventInfo {
+ public static final long ANY_CALENDAR = 0;
+
public static final int REPLY_ANY_EXCEPT_NO = 0;
public static final int REPLY_YES_OR_MAYBE = 1;
public static final int REPLY_YES = 2;
- public long calendar; // CalendarContract.Calendars._ID, or 0 for any
+ public long calendar = ANY_CALENDAR; // CalendarContract.Calendars._ID, or ANY_CALENDAR
public int reply;
@Override