private void saveCurrentValues() {
    RadioGroup sizeRG = (RadioGroup) this.findViewById(R.id.radiogroup_img_size);
    switch (sizeRG.getCheckedRadioButtonId()) {
      case R.id.radio_img_large:
        GSSettings.setGifOutputSize(GIFOUTPUTSIZE.LARGE);
        break;
      case R.id.radio_img_med:
        GSSettings.setGifOutputSize(GIFOUTPUTSIZE.MEDIUM);
        break;
      default:
        GSSettings.setGifOutputSize(GIFOUTPUTSIZE.SMALL);
    }

    int seekBarProgress = this.mFrameDelaySeekBar.getProgress();
    GSSettings.setGifFrameDelay(this.convertSBValueToRealValue(seekBarProgress));
  }
  private void setInitialValues() {
    int sizeRadioId;
    switch (GSSettings.getGifOutputSize()) {
      case LARGE:
        sizeRadioId = R.id.radio_img_large;
        break;
      case MEDIUM:
        sizeRadioId = R.id.radio_img_med;
        break;
      default:
        sizeRadioId = R.id.radio_img_small;
    }
    ((RadioButton) this.findViewById(sizeRadioId)).setChecked(true);

    this.mFrameDelaySeekBar.setProgress(
        this.convertRealValueToSBValue(GSSettings.getGifFrameDelay()));
    this.setFrameDelayTextValue(
        this.convertSBValueToRealValue(this.mFrameDelaySeekBar.getProgress()));
  }