コード例 #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 initSignalUIValue() {
   int opusSignal = mOpusConfig.getOSTValue();
   switch (opusSignal) {
     case OpusWrapper.OPUS_SIGNAL_TYPE_AUTO:
       rbSignalAuto.setChecked(true);
       break;
     case OpusWrapper.OPUS_SIGNAL_TYPE_MUSIC:
       rbSignalMusic.setChecked(true);
       break;
     case OpusWrapper.OPUS_SIGNAL_TYPE_VOICE:
       rbSignalVoice.setChecked(true);
       break;
   }
 }