|
@@ -243,6 +243,7 @@ public class ChatGroupSettingActivity extends BaseMVPActivity<TcActivityChatGrou
|
|
|
viewBinding.llGroupIntroduce.setOnClickListener(this);
|
|
|
|
|
|
IMThemManager.getInstance().setCheckButtonDrawable(viewBinding.cbMessage);
|
|
|
+ IMThemManager.getInstance().setCheckButtonDrawable(viewBinding.cbRefuseSingleChat);
|
|
|
IMThemManager.getInstance().setMainButtonStyles(viewBinding.btnConfirm);
|
|
|
|
|
|
if (BaseApplication.Companion.isTeacherClient()) {
|
|
@@ -290,6 +291,17 @@ public class ChatGroupSettingActivity extends BaseMVPActivity<TcActivityChatGrou
|
|
|
presenter.loadGroup(targetId);
|
|
|
// presenter.conversationGet(Conversation.ConversationType.GROUP, targetId);
|
|
|
|
|
|
+ viewBinding.cbRefuseSingleChat.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
+ @Override
|
|
|
+ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
+ if (buttonView.isPressed()) {
|
|
|
+ if (presenter != null) {
|
|
|
+ presenter.setSingleChatMode(targetId, !isChecked);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
cb_message.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
@Override
|
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
@@ -441,6 +453,8 @@ public class ChatGroupSettingActivity extends BaseMVPActivity<TcActivityChatGrou
|
|
|
viewBinding.cbMute.setChecked(false);
|
|
|
}
|
|
|
|
|
|
+ viewBinding.cbRefuseSingleChat.setChecked(!data.isAllowPrivateChatFlag());
|
|
|
+
|
|
|
checkTeacherCanAddMember(data.getType());
|
|
|
|
|
|
presenter.queryGroupMembers(targetId);
|