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

Commit 1acf3dcb authored by Beverly's avatar Beverly
Browse files

Only show zen rule gear if intent is valid

Test: manual
Fixes: 122638690
Change-Id: Ib9b37b2844ef7a439e38e5e71827903709fca46f
parent cc39557d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -171,6 +171,9 @@ public class ZenRulePreference extends TwoTargetPreference {
                getSettingsActivity(rule, si);
        mIntent = AbstractZenModeAutomaticRulePreferenceController.getRuleIntent(action,
                settingsActivity, mId);
        if (mIntent.resolveActivity(mPm) == null) {
            mIntent = null;
        }
        setKey(mId);
    }