Program: 91020
Project: 91020
Buggy source:
void initExternalSettings(){
  final PreferenceCategory external=(PreferenceCategory)findPreference("String_Node_Str");
  final List<BuySellServiceDescriptor> buySellServices=_mbwManager.getEnvironmentSettings().getBuySellServices();
  for (  final BuySellServiceDescriptor buySellService : buySellServices) {
    if (!buySellService.showEnableInSettings()) {
      continue;
    }
    final CheckBoxPreference cbService=new CheckBoxPreference(this);
    final String enableTitle=getResources().getString(R.string.settings_service_enabled,getResources().getString(buySellService.title));
    cbService.setTitle(enableTitle);
    cbService.setSummary(buySellService.settingDescription);
    cbService.setChecked(buySellService.isEnabled(_mbwManager));
    cbService.setWidgetLayoutResource(R.layout.preference_checkbox);
    cbService.setOnPreferenceClickListener(new OnPreferenceClickListener(){
      @Override public boolean onPreferenceClick(      Preference preference){
        CheckBoxPreference p=(CheckBoxPreference)preference;
        buySellService.setEnabled(_mbwManager,p.isChecked());
        return true;
      }
    }
);
    external.addPreference(cbService);
  }
  final CheckBoxPreference cbService=new CheckBoxPreference(this);
  cbService.setTitle(R.string.settings_mydfs_title);
  cbService.setSummary(R.string.settings_mydfs_summary);
  cbService.setChecked(SettingsPreference.getInstance().isMyDFSEnabled());
  cbService.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      CheckBoxPreference p=(CheckBoxPreference)preference;
      SettingsPreference.getInstance().setEnableMyDFS(p.isChecked());
      return true;
    }
  }
);
  external.addPreference(cbService);
}

Fixed version (ground truth):
void initExternalSettings(){
  final PreferenceCategory external=(PreferenceCategory)findPreference("String_Node_Str");
  final List<BuySellServiceDescriptor> buySellServices=_mbwManager.getEnvironmentSettings().getBuySellServices();
  for (  final BuySellServiceDescriptor buySellService : buySellServices) {
    if (!buySellService.showEnableInSettings()) {
      continue;
    }
    final CheckBoxPreference cbService=new CheckBoxPreference(this);
    final String enableTitle=getResources().getString(R.string.settings_service_enabled,getResources().getString(buySellService.title));
    cbService.setTitle(enableTitle);
    cbService.setSummary(buySellService.settingDescription);
    cbService.setChecked(buySellService.isEnabled(_mbwManager));
    cbService.setWidgetLayoutResource(R.layout.preference_checkbox);
    cbService.setOnPreferenceClickListener(new OnPreferenceClickListener(){
      @Override public boolean onPreferenceClick(      Preference preference){
        CheckBoxPreference p=(CheckBoxPreference)preference;
        buySellService.setEnabled(_mbwManager,p.isChecked());
        return true;
      }
    }
);
    external.addPreference(cbService);
  }
  final CheckBoxPreference cbService=new CheckBoxPreference(this);
  cbService.setTitle(R.string.settings_mydfs_title);
  cbService.setSummary(R.string.settings_mydfs_summary);
  cbService.setChecked(SettingsPreference.getInstance().isMyDFSEnabled());
  cbService.setWidgetLayoutResource(R.layout.preference_checkbox);
  cbService.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      CheckBoxPreference p=(CheckBoxPreference)preference;
      SettingsPreference.getInstance().setEnableMyDFS(p.isChecked());
      return true;
    }
  }
);
  external.addPreference(cbService);
}