Settings: Use new EventInfo.ANY_CALENDAR constant.
Bug: 20064962 Change-Id: I08a8c5feb61bfd440fc6a297d97de4abba5b19b3
This commit is contained in:
@@ -211,7 +211,7 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
|
||||
}
|
||||
|
||||
private String computeCalendarName(EventInfo event) {
|
||||
if (event.calendar != 0) {
|
||||
if (event.calendar != EventInfo.ANY_CALENDAR) {
|
||||
final CalendarInfo[] calendars = ZenModeEventRuleSettings.getCalendars(mContext);
|
||||
for (int i = 0; i < calendars.length; i++) {
|
||||
final CalendarInfo calendar = calendars[i];
|
||||
|
@@ -165,7 +165,7 @@ public abstract class ZenRuleNameDialog {
|
||||
|
||||
private static RuleInfo defaultNewEvent() {
|
||||
final EventInfo event = new EventInfo();
|
||||
event.calendar = 0; // any
|
||||
event.calendar = EventInfo.ANY_CALENDAR;
|
||||
event.reply = EventInfo.REPLY_ANY_EXCEPT_NO;
|
||||
final RuleInfo rt = new RuleInfo();
|
||||
rt.settingsAction = ZenModeEventRuleSettings.ACTION;
|
||||
|
Reference in New Issue
Block a user