Settings: Use new EventInfo.ANY_CALENDAR constant.

Bug: 20064962
Change-Id: I08a8c5feb61bfd440fc6a297d97de4abba5b19b3
This commit is contained in:
John Spurlock
2015-05-08 17:37:23 -04:00
parent c0df6623a0
commit 33bf636e72
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
} }
private String computeCalendarName(EventInfo event) { private String computeCalendarName(EventInfo event) {
if (event.calendar != 0) { if (event.calendar != EventInfo.ANY_CALENDAR) {
final CalendarInfo[] calendars = ZenModeEventRuleSettings.getCalendars(mContext); final CalendarInfo[] calendars = ZenModeEventRuleSettings.getCalendars(mContext);
for (int i = 0; i < calendars.length; i++) { for (int i = 0; i < calendars.length; i++) {
final CalendarInfo calendar = calendars[i]; final CalendarInfo calendar = calendars[i];

View File

@@ -165,7 +165,7 @@ public abstract class ZenRuleNameDialog {
private static RuleInfo defaultNewEvent() { private static RuleInfo defaultNewEvent() {
final EventInfo event = new EventInfo(); final EventInfo event = new EventInfo();
event.calendar = 0; // any event.calendar = EventInfo.ANY_CALENDAR;
event.reply = EventInfo.REPLY_ANY_EXCEPT_NO; event.reply = EventInfo.REPLY_ANY_EXCEPT_NO;
final RuleInfo rt = new RuleInfo(); final RuleInfo rt = new RuleInfo();
rt.settingsAction = ZenModeEventRuleSettings.ACTION; rt.settingsAction = ZenModeEventRuleSettings.ACTION;