Program: 165207
Project: 165207
Buggy source:
@Override public void onCreatePreferences(Bundle bundle,String s){
  Preferences.get().migrateOldPreferences();
  addPreferencesFromResource(R.xml.preferences);
  otherPrefGroup=(PreferenceGroup)findPreference("String_Node_Str");
  useTorCheckPref=(SwitchPreference)findPreference(Preferences.PREF_USE_TOR);
  enableProxyCheckPref=(SwitchPreference)findPreference(Preferences.PREF_ENABLE_PROXY);
  updateAutoDownloadPref=findPreference(Preferences.PREF_AUTO_DOWNLOAD_INSTALL_UPDATES);
  updatePrivilegedExtensionPref=findPreference(Preferences.PREF_UNINSTALL_PRIVILEGED_APP);
  overWifiSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_OVER_WIFI);
  overWifiPrevious=overWifiSeekBar.getValue();
  overWifiSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getNetworkSeekBarSummary(position);
    }
  }
);
  overDataSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_OVER_DATA);
  overDataPrevious=overDataSeekBar.getValue();
  overDataSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getNetworkSeekBarSummary(position);
    }
  }
);
  updateIntervalSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_UPDATE_INTERVAL);
  updateIntervalPrevious=updateIntervalSeekBar.getValue();
  updateIntervalSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getString(UPDATE_INTERVAL_NAMES[position]);
    }
  }
);
  ListPreference languagePref=(ListPreference)findPreference(Preferences.PREF_LANGUAGE);
  if (Build.VERSION.SDK_INT >= 24) {
    PreferenceCategory category=(PreferenceCategory)findPreference("String_Node_Str");
    category.removePreference(languagePref);
  }
 else {
    Languages languages=Languages.get(getActivity());
    languagePref.setDefaultValue(Languages.USE_SYSTEM_DEFAULT);
    languagePref.setEntries(languages.getAllNames());
    languagePref.setEntryValues(languages.getSupportedLocales());
  }
}

Fixed version (ground truth):
@Override public void onCreatePreferences(Bundle bundle,String s){
  Preferences.get().migrateOldPreferences();
  addPreferencesFromResource(R.xml.preferences);
  otherPrefGroup=(PreferenceGroup)findPreference("String_Node_Str");
  keepInstallHistoryPref=(CheckBoxPreference)findPreference(Preferences.PREF_KEEP_INSTALL_HISTORY);
  installHistoryPref=findPreference("String_Node_Str");
  installHistoryPref.setVisible(keepInstallHistoryPref.isChecked());
  useTorCheckPref=(SwitchPreference)findPreference(Preferences.PREF_USE_TOR);
  enableProxyCheckPref=(SwitchPreference)findPreference(Preferences.PREF_ENABLE_PROXY);
  updateAutoDownloadPref=findPreference(Preferences.PREF_AUTO_DOWNLOAD_INSTALL_UPDATES);
  updatePrivilegedExtensionPref=findPreference(Preferences.PREF_UNINSTALL_PRIVILEGED_APP);
  overWifiSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_OVER_WIFI);
  overWifiPrevious=overWifiSeekBar.getValue();
  overWifiSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getNetworkSeekBarSummary(position);
    }
  }
);
  overDataSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_OVER_DATA);
  overDataPrevious=overDataSeekBar.getValue();
  overDataSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getNetworkSeekBarSummary(position);
    }
  }
);
  updateIntervalSeekBar=(LiveSeekBarPreference)findPreference(Preferences.PREF_UPDATE_INTERVAL);
  updateIntervalPrevious=updateIntervalSeekBar.getValue();
  updateIntervalSeekBar.setSeekBarLiveUpdater(new LiveSeekBarPreference.SeekBarLiveUpdater(){
    @Override public String seekBarUpdated(    int position){
      return getString(UPDATE_INTERVAL_NAMES[position]);
    }
  }
);
  ListPreference languagePref=(ListPreference)findPreference(Preferences.PREF_LANGUAGE);
  if (Build.VERSION.SDK_INT >= 24) {
    PreferenceCategory category=(PreferenceCategory)findPreference("String_Node_Str");
    category.removePreference(languagePref);
  }
 else {
    Languages languages=Languages.get(getActivity());
    languagePref.setDefaultValue(Languages.USE_SYSTEM_DEFAULT);
    languagePref.setEntries(languages.getAllNames());
    languagePref.setEntryValues(languages.getSupportedLocales());
  }
}