Merge "Add null check for mIntent in ZenRulePreference to avoid potential crash risk"
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user