@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; }
private void initBandwidthValue() { int opusBandwidth = mOpusConfig.getOBValue(); switch (opusBandwidth) { case OpusWrapper.OPUS_BANDWIDTH_FULLBAND: rbBandwidthFull.setChecked(true); break; case OpusWrapper.OPUS_BANDWIDTH_MEDIUMBAND: rbBandwidthMedium.setChecked(true); break; case OpusWrapper.OPUS_BANDWIDTH_NARROWBAND: rbBandwidthNarrow.setChecked(true); break; case OpusWrapper.OPUS_BANDWIDTH_SUPERWIDEBAND: rbBandwidthSuper.setChecked(true); break; case OpusWrapper.OPUS_BANDWIDTH_WIDEBAND: rbBandwidthWide.setChecked(true); break; } }