Commit 6b09caef by 霍志良

feat:im-灵犀2.0-屏蔽常见问题

parent f1c04f3a
...@@ -175,7 +175,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -175,7 +175,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private int expertInfoViewHeight = 0; // 专家信息栏高度 private int expertInfoViewHeight = 0; // 专家信息栏高度
private RecyclerView messageListView; private RecyclerView messageListView;
private ConstraintLayout top_expert_info_cl; private ConstraintLayout top_expert_info_cl;
private RelativeLayout rl_common_question_enter; // private RelativeLayout rl_common_question_enter;
private FrameLayout fl_question_content; private FrameLayout fl_question_content;
private List<CommonQuestionBean> commonQuestionBeanList; private List<CommonQuestionBean> commonQuestionBeanList;
private TextView question_multiple; private TextView question_multiple;
...@@ -269,7 +269,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -269,7 +269,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
rl_contain = rootView.findViewById(R.id.rl_contain); rl_contain = rootView.findViewById(R.id.rl_contain);
//和助理私聊时的常用语逻辑 //和助理私聊时的常用语逻辑
rl_common_question_enter = rootView.findViewById(R.id.rl_common_question); // rl_common_question_enter = rootView.findViewById(R.id.rl_common_question);
fl_question_content = rootView.findViewById(R.id.fl_question_content); fl_question_content = rootView.findViewById(R.id.fl_question_content);
question_multiple = rootView.findViewById(R.id.question_multiple); question_multiple = rootView.findViewById(R.id.question_multiple);
//做灵犀2.0 去掉常用语逻辑 //做灵犀2.0 去掉常用语逻辑
...@@ -307,16 +307,16 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -307,16 +307,16 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private void initView() { private void initView() {
if (ActionHandlerStorage.getL(sessionId) != null && ActionHandlerStorage.getL(sessionId).getUserType() == 3) { if (ActionHandlerStorage.getL(sessionId) != null && ActionHandlerStorage.getL(sessionId).getUserType() == 3) {
rl_common_question_enter.setOnClickListener(v -> { /* rl_common_question_enter.setOnClickListener(v -> {
if (commonQuestionBeanList != null && commonQuestionBeanList.size() > 0) { if (commonQuestionBeanList != null && commonQuestionBeanList.size() > 0) {
openOrCloseCommonQuestionLayout(true); openOrCloseCommonQuestionLayout(true);
} else { } else {
getCommonQuestionListData(); getCommonQuestionListData();
} }
}); });*/
if (ChatStatusCacheHelper.getStatusCache("chatEvent")) { if (ChatStatusCacheHelper.getStatusCache("chatEvent")) {
if (commonQuestionBeanList != null && commonQuestionBeanList.size() > 0) { if (commonQuestionBeanList != null && commonQuestionBeanList.size() > 0) {
rl_common_question_enter.postDelayed(() -> openOrCloseCommonQuestionLayout(true), 300); // rl_common_question_enter.postDelayed(() -> openOrCloseCommonQuestionLayout(true), 300);
} else { } else {
try { try {
YdlBuryPointUtil.sendPv("common_question_pager"); YdlBuryPointUtil.sendPv("common_question_pager");
...@@ -1385,7 +1385,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -1385,7 +1385,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
commonQuestionBeanList.clear(); commonQuestionBeanList.clear();
} }
commonQuestionBeanList.addAll(res.data); commonQuestionBeanList.addAll(res.data);
initCommonQuestionLayout(); // initCommonQuestionLayout();
} }
}, throwable -> { }, throwable -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment