|
@@ -26,6 +26,7 @@ import com.cooleshow.base.utils.JumpUtils;
|
|
|
import com.cooleshow.base.utils.LOG;
|
|
|
import com.cooleshow.base.utils.LogUtils;
|
|
|
import com.cooleshow.base.utils.ToastUtil;
|
|
|
+import com.cooleshow.base.utils.ToastUtils;
|
|
|
import com.cooleshow.base.utils.helper.QMUIStatusBarHelper;
|
|
|
import com.cooleshow.base.widgets.dialog.CommonConfirmDialog;
|
|
|
import com.cooleshow.base.widgets.dialog.CommonDialog;
|
|
@@ -143,6 +144,13 @@ public class ChatGroupSettingActivity extends BaseMVPActivity<TcActivityChatGrou
|
|
|
return;
|
|
|
} else if (view.getId() == R.id.ll_group_introduce) {
|
|
|
//群简介
|
|
|
+ if (!BaseApplication.Companion.isTeacherClient()) {
|
|
|
+ //学生端 群简介为空不可点击进入
|
|
|
+ if (TextUtils.isEmpty(groupIntroduce)) {
|
|
|
+ ToastUtil.getInstance().showShort(getString(R.string.there_no_group_introduce_tip));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
ARouter.getInstance().build(TCChatRouterPath.CHAT_GROUP_INTRODUCE)
|
|
|
.withString(Constants.TARGET_ID_KEY, targetId)
|
|
|
.withString(Constants.COMMON_EXTRA_KEY, groupIntroduce)
|
|
@@ -415,8 +423,9 @@ public class ChatGroupSettingActivity extends BaseMVPActivity<TcActivityChatGrou
|
|
|
tv_group_name.setText(data.getName());
|
|
|
tv_group_name_remarks.setText(data.getName());
|
|
|
//群简介
|
|
|
- this.groupIntroduce = data.getIntroduce();
|
|
|
- viewBinding.tvGroupIntroduce.setText(data.getIntroduce());
|
|
|
+ String introduce = data.getIntroduce();
|
|
|
+ this.groupIntroduce = introduce;
|
|
|
+ viewBinding.tvGroupIntroduce.setText(TextUtils.isEmpty(introduce) ? getString(R.string.there_no_group_introduce_tip) : introduce);
|
|
|
|
|
|
//群禁言状态
|
|
|
if (!TextUtils.isEmpty(data.getConfigJson())) {
|