|
@@ -49,6 +49,8 @@ public class WatchUserSettingActivity extends Activity {
|
|
|
private RadioButton callYes, callNo;
|
|
|
private RadioGroup imChannelGroup;
|
|
|
private RadioButton imChannelYes, imChannelNo;
|
|
|
+ private RadioGroup callTransGroup;
|
|
|
+ private RadioButton transferOn, transferOff;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
@@ -80,6 +82,10 @@ public class WatchUserSettingActivity extends Activity {
|
|
|
imChannelYes = findViewById(R.id.rb_im_channel_yes);
|
|
|
imChannelNo = findViewById(R.id.rb_im_channel_no);
|
|
|
|
|
|
+ callTransGroup = findViewById(R.id.group_call_transfer);
|
|
|
+ transferOn = findViewById(R.id.rb_call_transfer_on);
|
|
|
+ transferOff = findViewById(R.id.rb_call_transfer_off);
|
|
|
+
|
|
|
TextView partNameView = findViewById(R.id.part_name);
|
|
|
partNameView.setText(Constants.Companion.getPartName());
|
|
|
|
|
@@ -105,6 +111,12 @@ public class WatchUserSettingActivity extends Activity {
|
|
|
imChannelNo.setChecked(true);
|
|
|
}
|
|
|
|
|
|
+ if (SettingConfig.getCallTransfer(BaseApplication.appContext)) {
|
|
|
+ transferOn.setChecked(true);
|
|
|
+ } else {
|
|
|
+ transferOff.setChecked(true);
|
|
|
+ }
|
|
|
+
|
|
|
int mode = SettingConfig.getLanguageMode(BaseApplication.appContext);
|
|
|
RadioGroup languageMode = findViewById(R.id.group_language_mode);
|
|
|
RadioButton languageYes = findViewById(R.id.rb_language_yes);
|
|
@@ -237,6 +249,17 @@ public class WatchUserSettingActivity extends Activity {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ callTransGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
|
|
|
+ @Override
|
|
|
+ public void onCheckedChanged(RadioGroup group, int checkedId) {
|
|
|
+ if (checkedId == R.id.rb_call_transfer_on) {
|
|
|
+ SettingConfig.setCallTransfer(BaseApplication.appContext, true);
|
|
|
+ } else {
|
|
|
+ SettingConfig.setCallTransfer(BaseApplication.appContext, false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
Button update = findViewById(R.id.btn_update_contact);
|
|
|
update.setOnClickListener(new View.OnClickListener() {
|