Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 322a0224 authored by Beverly's avatar Beverly
Browse files

ZenScheduleRule is valid even if it never occurs

Bug: 111167252
Test: make RunSettingsRoboTests -j40
Change-Id: Ibb564b2b0bca049afb17641e372276e58e487df2
parent 2d41659c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ public class ZenRulePreference extends TwoTargetPreference {

    protected void setAttributes(AutomaticZenRule rule) {
        final boolean isSchedule = ZenModeConfig.isValidScheduleConditionId(
                rule.getConditionId());
                rule.getConditionId(), true);
        final boolean isEvent = ZenModeConfig.isValidEventConditionId(rule.getConditionId());
        final boolean isSystemRule = isSchedule || isEvent;