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

This commit is contained in:
Treehugger Robot
2022-09-02 03:36:40 +00:00
committed by Gerrit Code Review

View File

@@ -91,7 +91,9 @@ public class ZenRulePreference extends PrimarySwitchPreference {
@Override
public void onClick() {
mContext.startActivity(mIntent);
if (mIntent != null) {
mContext.startActivity(mIntent);
}
}
@Override