|
@@ -66,7 +66,7 @@ public class WatchUserSettingActivity extends Activity {
|
|
tvServerIp.setText(Constants.Companion.getTcpServer());
|
|
tvServerIp.setText(Constants.Companion.getTcpServer());
|
|
tvPhoneType.setText("手机-" + Constants.Companion.getPhoneType() + ", 分机-" + Constants.Companion.getBedPhoneType() + ", 主机-" + Constants.Companion.getNursePhoneType());
|
|
tvPhoneType.setText("手机-" + Constants.Companion.getPhoneType() + ", 分机-" + Constants.Companion.getBedPhoneType() + ", 主机-" + Constants.Companion.getNursePhoneType());
|
|
|
|
|
|
- if (SettingConfig.getVoiceCallType(BaseApplication.appContext) == SettingConfig.VOICE_CALL) {
|
|
|
|
|
|
+ if (SettingConfig.getTransCall(BaseApplication.appContext) == 1) {
|
|
callYes.setChecked(true);
|
|
callYes.setChecked(true);
|
|
} else {
|
|
} else {
|
|
callNo.setChecked(true);
|
|
callNo.setChecked(true);
|
|
@@ -110,24 +110,16 @@ public class WatchUserSettingActivity extends Activity {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- btnSystemSetting.setOnClickListener(new View.OnClickListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onClick(View view) {
|
|
|
|
- Intent intent = new Intent(Settings.ACTION_SETTINGS);
|
|
|
|
- startActivity(intent);
|
|
|
|
- }
|
|
|
|
|
|
+ btnSystemSetting.setOnClickListener(view -> {
|
|
|
|
+ Intent intent = new Intent(Settings.ACTION_SETTINGS);
|
|
|
|
+ startActivity(intent);
|
|
});
|
|
});
|
|
|
|
|
|
- callGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onCheckedChanged(RadioGroup group, int checkedId) {
|
|
|
|
- if (checkedId == R.id.rb_call_yes) {
|
|
|
|
- //普通电话
|
|
|
|
- SettingConfig.setVoiceCallType(BaseApplication.appContext, SettingConfig.VOICE_CALL);
|
|
|
|
- } else {
|
|
|
|
- //网络电话
|
|
|
|
- SettingConfig.setVoiceCallType(BaseApplication.appContext, SettingConfig.SIP_CALL);
|
|
|
|
- }
|
|
|
|
|
|
+ callGroup.setOnCheckedChangeListener((group, checkedId) -> {
|
|
|
|
+ if (checkedId == R.id.rb_call_yes) {
|
|
|
|
+ SettingConfig.setTransCall(BaseApplication.appContext, 1);
|
|
|
|
+ } else {
|
|
|
|
+ SettingConfig.setTransCall(BaseApplication.appContext, 0);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|