コード例 #1
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.frag_opus_setting_page, container, false);

    mOpusConfig = OpusConfig.GetInstance();
    mOpusApplication = mOpusConfig.getOAValue();
    mOpusSignal = mOpusConfig.getOSTValue();
    mOpusBandwidth = mOpusConfig.getOBValue();

    initView(rootView);

    return rootView;
  }
コード例 #2
0
  private void initApplicationUIValue() {
    int opusApplication = mOpusConfig.getOAValue();

    switch (opusApplication) {
      case OpusWrapper.OPUS_APPLICATION_AUDIO:
        rbAppAudio.setChecked(true);
        break;
      case OpusWrapper.OPUS_APPLICATION_VOIP:
        rbAppVoIP.setChecked(true);
        break;
      case OpusWrapper.OPUS_APPLICATION_RESTRICTED_LOWDELAY:
        rbAppRistrictLowDelay.setChecked(true);
        break;
    }
  }