1:添加更换设置服务器地址
2:添加关闭红包声音图标
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.xscm.modulemain.activity.user.activity;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
@@ -80,16 +82,22 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
mBinding.swit.setChecked(false);
|
||||
}
|
||||
} else {
|
||||
mBinding.llQhdz.setVisibility(View.GONE);
|
||||
mBinding.llQhdz.setVisibility(GONE);
|
||||
}
|
||||
if (userInfo.getMobile()!=null && !userInfo.getMobile().equals("")) {
|
||||
if (userInfo.getMobile() != null && !userInfo.getMobile().equals("")) {
|
||||
mBinding.tvPhoneTitle.setText("手机换绑");
|
||||
mBinding.tvPhone.setText(TextViewUtils.formatAnyPhone(userInfo.getMobile()));
|
||||
}else {
|
||||
} else {
|
||||
mBinding.tvPhoneTitle.setText("手机绑定");
|
||||
mBinding.tvPhone.setText("");
|
||||
}
|
||||
}
|
||||
if (CommonAppContext.selectRelease == 1){
|
||||
mBinding.llQh.setVisibility(GONE);
|
||||
}else {
|
||||
mBinding.llQh.setVisibility(View.VISIBLE);
|
||||
}
|
||||
mBinding.switQh.setChecked(SpUtil.getTaskService()==1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -115,6 +123,7 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
mBinding.llBbh.setOnClickListener(this::onClick);
|
||||
mBinding.tvShare.setOnClickListener(this::onClick);
|
||||
mBinding.llSendLog.setOnClickListener(this::onClick);
|
||||
mBinding.switQh.setOnClickListener(this::onClick);
|
||||
}
|
||||
|
||||
@SuppressLint("CheckResult")
|
||||
@@ -139,9 +148,9 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
startActivity(new Intent(this, ChangPassActivity.class));
|
||||
} else if (id == R.id.ll_shb) {
|
||||
LogUtils.e("点击了", SpUtil.getUserBean().getMobile());
|
||||
if (TextUtils.isEmpty(SpUtil.getUserBean().getMobile())){
|
||||
if (TextUtils.isEmpty(SpUtil.getUserBean().getMobile())) {
|
||||
startActivity(new Intent(this, PhoneReplacementActivity.class));
|
||||
}else {
|
||||
} else {
|
||||
startActivity(new Intent(this, MobilePhoneActivity.class));
|
||||
}
|
||||
} else if (id == R.id.ll_smrz) {//实名认证
|
||||
@@ -290,6 +299,16 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
} else if (id == R.id.swit_qh) {
|
||||
if (mBinding.switQh.isChecked()) {
|
||||
SpUtil.setTaskService(1);
|
||||
CommonAppContext.selectRelease = 2;
|
||||
} else {
|
||||
SpUtil.setTaskService(0);
|
||||
CommonAppContext.selectRelease = -1;
|
||||
}
|
||||
|
||||
// MvpPre.clearLoginInfo();
|
||||
}
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
|
||||
@@ -139,7 +139,7 @@ public class HorizontalListAdapter extends RecyclerView.Adapter<HorizontalListAd
|
||||
case RoomSettingBean.QXRoomSettingTypeRoomTimeSpace:
|
||||
return com.xscm.moduleutil.R.mipmap.time_space;
|
||||
case RoomSettingBean.QXRoomSettingTypeRoomTimeRedSound:
|
||||
return b ? com.xscm.moduleutil.R.mipmap.room_voice_g : com.xscm.moduleutil.R.mipmap.y_won;
|
||||
return b ? com.xscm.moduleutil.R.mipmap.red_effect_off : com.xscm.moduleutil.R.mipmap.red_effect_on;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user