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];
|
||||
|
Reference in New Issue
Block a user