Program: 39389
Project: 39389
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mGestureLockCheck) {
    if (mGestureLockCheck.isChecked()) {
      SPUtils.put(context,Constant.SP_GESTURE,"String_Node_Str");
      mGestureLockCheck.setChecked(false);
    }
 else {
      if (MyAVUser.getCurrentUser() != null) {
        Intent intent=new Intent(context,GestureLockActivity.class);
        intent.putExtra(IntentConstant.SETTING_MODE,true);
        startActivity(intent);
      }
 else {
        SnackBarUtil.showSnackInfo(getView(),context,"String_Node_Str");
      }
    }
  }
 else   if (preference == mRemindCheck) {
    if (mRemindCheck.isChecked()) {
      SPUtils.put(context,Constant.SP_ALARM_TIME,0l);
      mRemindCheck.setChecked(false);
    }
 else {
      final Calendar calendar=Calendar.getInstance();
      TimePickerDialog timePickerDialog=TimePickerDialog.newInstance(new TimePickerDialog.OnTimeSetListener(){
        @Override public void onTimeSet(        RadialPickerLayout view,        int hourOfDay,        int minute,        int second){
          calendar.set(Calendar.HOUR_OF_DAY,hourOfDay);
          calendar.set(Calendar.MINUTE,minute);
          calendar.set(Calendar.SECOND,0);
          calendar.set(Calendar.MILLISECOND,0);
          SPUtils.put(context,Constant.SP_ALARM_TIME,calendar.getTimeInMillis());
          mRemindCheck.setChecked(true);
          mRemindCheck.setSummaryOn("String_Node_Str" + format.format(calendar.getTime()) + "String_Node_Str");
          AlarmUtil.createAlarm(context);
        }
      }
,calendar.get(Calendar.HOUR_OF_DAY),calendar.get(Calendar.MINUTE),true);
      timePickerDialog.setAccentColor(getResources().getColor(ThemeUtil.getTheme(context).getMainColorID()));
      timePickerDialog.show(getFragmentManager(),"String_Node_Str");
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mGestureLockCheck) {
    if (mGestureLockCheck.isChecked()) {
      SPUtils.put(context,Constant.SP_GESTURE,"String_Node_Str");
      mGestureLockCheck.setChecked(false);
    }
 else {
      if (MyAVUser.getCurrentUser() != null) {
        Intent intent=new Intent(context,GestureLockActivity.class);
        intent.putExtra(IntentConstant.SETTING_MODE,true);
        startActivity(intent);
      }
 else {
        SnackBarUtil.showSnackInfo(getView(),context,"String_Node_Str");
      }
    }
  }
 else   if (preference == mRemindCheck) {
    if (mRemindCheck.isChecked()) {
      SPUtils.put(context,Constant.SP_ALARM_TIME,0l);
      mRemindCheck.setChecked(false);
      AlarmUtil.createAlarmOrCancel(context,false);
    }
 else {
      final Calendar calendar=Calendar.getInstance();
      TimePickerDialog timePickerDialog=TimePickerDialog.newInstance(new TimePickerDialog.OnTimeSetListener(){
        @Override public void onTimeSet(        RadialPickerLayout view,        int hourOfDay,        int minute,        int second){
          calendar.set(Calendar.HOUR_OF_DAY,hourOfDay);
          calendar.set(Calendar.MINUTE,minute);
          calendar.set(Calendar.SECOND,0);
          calendar.set(Calendar.MILLISECOND,0);
          SPUtils.put(context,Constant.SP_ALARM_TIME,calendar.getTimeInMillis());
          mRemindCheck.setChecked(true);
          mRemindCheck.setSummaryOn("String_Node_Str" + format.format(calendar.getTime()) + "String_Node_Str");
          AlarmUtil.createAlarm(context);
        }
      }
,calendar.get(Calendar.HOUR_OF_DAY),calendar.get(Calendar.MINUTE),true);
      timePickerDialog.setAccentColor(getResources().getColor(ThemeUtil.getTheme(context).getMainColorID()));
      timePickerDialog.show(getFragmentManager(),"String_Node_Str");
    }
  }
 else   if (preference == mImmersiveCheck) {
    if (mImmersiveCheck.isChecked()) {
      mImmersiveCheck.setChecked(false);
      StatusBarCompat.compat((Activity)context,context.getResources().getColor(ThemeUtil.getTheme(context).getMainDarkColorID()));
    }
 else {
      mImmersiveCheck.setChecked(true);
      StatusBarCompat.compat((Activity)context,context.getResources().getColor(ThemeUtil.getTheme(context).getMainColorID()));
    }
  }
  return false;
}