Program: 80586
Project: 80586
Buggy source:
@Override public boolean onPreferenceChange(final Preference preference,Object newValue){
  if (preference.getKey().equals(Settings.BACKGROUND_COLOR_PREFERENCE)) {
    String hex=ColorPickerPreference.convertToARGB(Integer.valueOf(String.valueOf(newValue)));
    preference.setSummary(hex);
  }
 else   if (preference.getKey().equals(Settings.APPS_BY_WIDGET_SIZE_PREFERENCE)) {
    if (apps_by_widget_size_preference.isChecked()) {
      appnos_preference.setSummary(R.string.automatic_appsno);
      appnos_ls_preference.setSummary(R.string.automatic_appsno);
    }
 else {
      appnos_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_preference),appnos_preference.getValue()));
      appnos_ls_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_ls_preference),appnos_ls_preference.getValue()));
    }
  }
 else   if (preference.getKey().equals(Settings.STATS_WIDGET_APPSNO_PREFERENCE)) {
    appnos_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_preference),(String)newValue));
  }
 else   if (preference.getKey().equals(Settings.STATS_WIDGET_APPSNO_LS_PREFERENCE)) {
    appnos_ls_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_ls_preference),(String)newValue));
  }
 else   if (preference.getKey().equals(Settings.ICON_COLOR_PREFERENCE)) {
    String hex=ColorPickerPreference.convertToARGB(Integer.valueOf(String.valueOf(newValue)));
    preference.setSummary(hex);
  }
 else   if (preference.getKey().equals(Settings.ICON_SIZE_PREFERENCE)) {
    appnos_preference.goDefault(String.format(getResources().getString(R.string.summary_icon_size_preference),(String)newValue));
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(final Preference preference,Object newValue){
  if (preference.getKey().equals(Settings.BACKGROUND_COLOR_PREFERENCE)) {
    String hex=ColorPickerPreference.convertToARGB(Integer.valueOf(String.valueOf(newValue)));
    preference.setSummary(hex);
  }
 else   if (preference.getKey().equals(Settings.APPS_BY_WIDGET_SIZE_PREFERENCE)) {
    if (apps_by_widget_size_preference.isChecked()) {
      appnos_preference.setSummary(R.string.automatic_appsno);
      appnos_ls_preference.setSummary(R.string.automatic_appsno);
    }
 else {
      appnos_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_preference),appnos_preference.getValue()));
      appnos_ls_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_ls_preference),appnos_ls_preference.getValue()));
    }
  }
 else   if (preference.getKey().equals(Settings.STATS_WIDGET_APPSNO_PREFERENCE)) {
    appnos_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_preference),(String)newValue));
  }
 else   if (preference.getKey().equals(Settings.STATS_WIDGET_APPSNO_LS_PREFERENCE)) {
    appnos_ls_preference.goDefault(String.format(getResources().getString(R.string.summary_stats_widget_appsno_ls_preference),(String)newValue));
  }
 else   if (preference.getKey().equals(Settings.ICON_COLOR_PREFERENCE)) {
    String hex=ColorPickerPreference.convertToARGB(Integer.valueOf(String.valueOf(newValue)));
    preference.setSummary(hex);
  }
 else   if (preference.getKey().equals(Settings.ICON_SIZE_PREFERENCE)) {
    icon_size_preference.goDefault(String.format(getResources().getString(R.string.summary_icon_size_preference),(String)newValue));
  }
  return true;
}