Program: 157431
Project: 157431
Buggy source:
private void loadSettings(){
  SharedPreferences sp=PreferenceManager.getDefaultSharedPreferences(this);
  mVibrationDuration=Integer.parseInt(sp.getString(getString(R.string.settings_key_vibrate_on_key_press_duration),getString(R.string.settings_default_vibrate_on_key_press_duration)));
  mSoundOn=sp.getBoolean(getString(R.string.settings_key_sound_on),getResources().getBoolean(R.bool.settings_default_sound_on));
  if (mSoundOn) {
    Log.i(TAG,"String_Node_Str");
    mAudioManager.loadSoundEffects();
  }
  boolean customVolume=sp.getBoolean("String_Node_Str",false);
  int newVolume;
  if (customVolume) {
    newVolume=sp.getInt("String_Node_Str",0) + 1;
    Log.i(TAG,"String_Node_Str" + newVolume + "String_Node_Str");
  }
 else {
    Log.i(TAG,"String_Node_Str");
    newVolume=-1;
  }
  mSoundVolume=newVolume;
  mKeyboardChangeNotificationType=sp.getString(getString(R.string.settings_key_physical_keyboard_change_notification_type),getString(R.string.settings_default_physical_keyboard_change_notification_type));
  mInputMethodManager.hideStatusIcon(mImeToken);
  if (mKeyboardChangeNotificationType.equals(KEYBOARD_NOTIFICATION_ALWAYS))   notifyKeyboardChangeIfNeeded();
  mAutoCap=sp.getBoolean("String_Node_Str",true);
  mShowSuggestions=sp.getBoolean("String_Node_Str",true);
  setDictionariesForCurrentKeyboard();
  mAutoComplete=sp.getBoolean("String_Node_Str",true) && mShowSuggestions;
  mQuickFixes=sp.getBoolean("String_Node_Str",true);
  mAllowSuggestionsRestart=sp.getBoolean(getString(R.string.settings_key_allow_suggestions_restart),getResources().getBoolean(R.bool.settings_default_allow_suggestions_restart));
  mAutoCorrectOn=mAutoComplete;
  mFlipQuickTextKeyAndPopupFunctionality=sp.getBoolean(getString(R.string.settings_key_emoticon_long_press_opens_popup),getResources().getBoolean(R.bool.settings_default_emoticon_long_press_opens_popup));
  mOverrideQuickTextText=sp.getString(getString(R.string.settings_key_emoticon_default_text),null);
  mMinimumWordCorrectionLength=sp.getInt(getString(R.string.settings_key_min_length_for_word_correction__),2);
  if (mSuggest != null)   mSuggest.setMinimumWordLengthForCorrection(mMinimumWordCorrectionLength);
  setInitialCondensedState(getResources().getConfiguration());
}

Fixed version (ground truth):
private void loadSettings(){
  SharedPreferences sp=PreferenceManager.getDefaultSharedPreferences(this);
  mVibrationDuration=Integer.parseInt(sp.getString(getString(R.string.settings_key_vibrate_on_key_press_duration),getString(R.string.settings_default_vibrate_on_key_press_duration)));
  mSoundOn=sp.getBoolean(getString(R.string.settings_key_sound_on),getResources().getBoolean(R.bool.settings_default_sound_on));
  if (mSoundOn) {
    Log.i(TAG,"String_Node_Str");
    mAudioManager.loadSoundEffects();
  }
  boolean customVolume=sp.getBoolean("String_Node_Str",false);
  int newVolume;
  if (customVolume) {
    newVolume=sp.getInt("String_Node_Str",0) + 1;
    Log.i(TAG,"String_Node_Str" + newVolume + "String_Node_Str");
  }
 else {
    Log.i(TAG,"String_Node_Str");
    newVolume=-1;
  }
  mSoundVolume=newVolume;
  mKeyboardChangeNotificationType=sp.getString(getString(R.string.settings_key_physical_keyboard_change_notification_type),getString(R.string.settings_default_physical_keyboard_change_notification_type));
  mInputMethodManager.hideStatusIcon(mImeToken);
  if (mKeyboardChangeNotificationType.equals(KEYBOARD_NOTIFICATION_ALWAYS))   notifyKeyboardChangeIfNeeded();
  mAutoCap=sp.getBoolean("String_Node_Str",true);
  mShowSuggestions=sp.getBoolean("String_Node_Str",true);
  setDictionariesForCurrentKeyboard();
  mAutoComplete=sp.getBoolean("String_Node_Str",true) && mShowSuggestions;
  mQuickFixes=sp.getBoolean("String_Node_Str",true);
  mAllowSuggestionsRestart=sp.getBoolean(getString(R.string.settings_key_allow_suggestions_restart),getResources().getBoolean(R.bool.settings_default_allow_suggestions_restart));
  mAutoCorrectOn=mAutoComplete;
  mDoNotFlipQuickTextKeyAndPopupFunctionality=sp.getBoolean(getString(R.string.settings_key_do_not_flip_quick_key_codes_functionality),getResources().getBoolean(R.bool.settings_default_do_not_flip_quick_keys_functionality));
  mOverrideQuickTextText=sp.getString(getString(R.string.settings_key_emoticon_default_text),null);
  mMinimumWordCorrectionLength=sp.getInt(getString(R.string.settings_key_min_length_for_word_correction__),2);
  if (mSuggest != null)   mSuggest.setMinimumWordLengthForCorrection(mMinimumWordCorrectionLength);
  setInitialCondensedState(getResources().getConfiguration());
}