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

Commit 36a80cd8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add null check for mIntent in ZenRulePreference to avoid potential crash risk"

parents 89418428 b25f123d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -91,8 +91,10 @@ public class ZenRulePreference extends PrimarySwitchPreference {

    @Override
    public void onClick() {
        if (mIntent != null) {
            mContext.startActivity(mIntent);
        }
    }

    @Override
    public void setChecked(boolean checked) {