diff options
author | John Spurlock <jspurlock@google.com> | 2015-05-05 09:49:32 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2015-05-05 09:49:32 -0400 |
commit | d39af2d3f8c5d87e102aeb79d4148218ff616245 (patch) | |
tree | 9fe27d1f3dcaa5102eff2b161ba6442b9f281b2a /core/java/android | |
parent | ad2399f3be4861d0f5acf072460d98fafc951c57 (diff) | |
download | frameworks_base-d39af2d3f8c5d87e102aeb79d4148218ff616245.zip frameworks_base-d39af2d3f8c5d87e102aeb79d4148218ff616245.tar.gz frameworks_base-d39af2d3f8c5d87e102aeb79d4148218ff616245.tar.bz2 |
Zen: Remove calendar rule attendance attribute.
- No longer supporting a filter based on attendance type.
- Remove from model + condition provider logic.
Bug: 20064962
Change-Id: I0bc16275a2860ab95d4de316b6326a1499003f05
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/service/notification/ZenModeConfig.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/core/java/android/service/notification/ZenModeConfig.java b/core/java/android/service/notification/ZenModeConfig.java index f09f4d2..968cd72 100644 --- a/core/java/android/service/notification/ZenModeConfig.java +++ b/core/java/android/service/notification/ZenModeConfig.java @@ -692,7 +692,6 @@ public class ZenModeConfig implements Parcelable { .authority(SYSTEM_AUTHORITY) .appendPath(EVENT_PATH) .appendQueryParameter("calendar", Long.toString(event.calendar)) - .appendQueryParameter("attendance", Integer.toString(event.attendance)) .appendQueryParameter("reply", Integer.toString(event.reply)) .build(); } @@ -710,22 +709,16 @@ public class ZenModeConfig implements Parcelable { if (!isEvent) return null; final EventInfo rt = new EventInfo(); rt.calendar = tryParseLong(conditionId.getQueryParameter("calendar"), 0L); - rt.attendance = tryParseInt(conditionId.getQueryParameter("attendance"), 0); rt.reply = tryParseInt(conditionId.getQueryParameter("reply"), 0); return rt; } public static class EventInfo { - public static final int ATTENDANCE_REQUIRED_OR_OPTIONAL = 0; - public static final int ATTENDANCE_REQUIRED = 1; - public static final int ATTENDANCE_OPTIONAL = 2; - - public static final int REPLY_ANY = 0; - public static final int REPLY_ANY_EXCEPT_NO = 1; + 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 int attendance; public int reply; @Override @@ -738,14 +731,12 @@ public class ZenModeConfig implements Parcelable { if (!(o instanceof EventInfo)) return false; final EventInfo other = (EventInfo) o; return calendar == other.calendar - && attendance == other.attendance && reply == other.reply; } public EventInfo copy() { final EventInfo rt = new EventInfo(); rt.calendar = calendar; - rt.attendance = attendance; rt.reply = reply; return rt; } |