1:修改送礼中趣味的岁月之城和时空之巅,不需要选择人员就可以打开
2:优化用在房间点击用户,点击抱麦出现的错误 3: 在岁月之城和时空之巅中查看记录的时候,进行判断,当返回的nickname是null的时候,就直接不展示赠与 4:修改任务UI, 5:添加房间暴币功能 6:修改房间暴币飘屏 7:添加启动页动画 8:修改房间的设置
This commit is contained in:
@@ -1159,24 +1159,24 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
||||
if (TUIChatConfigClassic.isShowInputBarCustom()
|
||||
&& getChatInfo().isEnableCustomHelloMessage()
|
||||
&& !excludeItems.contains(TUIChatConfigClassic.CUSTOM)) {
|
||||
actionUnit = new InputMoreItem() {};
|
||||
actionUnit.setIconResId(R.drawable.chat_more_input_custom_message);
|
||||
actionUnit.setName(getResources().getString(R.string.test_custom_action));
|
||||
actionUnit.setActionId(CustomHelloMessage.CUSTOM_HELLO_ACTION_ID);
|
||||
actionUnit.setPriority(10);
|
||||
actionUnit.setOnClickListener(actionUnit.new OnActionClickListener() {
|
||||
@Override
|
||||
public void onClick() {
|
||||
Gson gson = new Gson();
|
||||
CustomHelloMessage customHelloMessage = new CustomHelloMessage();
|
||||
customHelloMessage.version = TUIChatConstants.version;
|
||||
|
||||
String data = gson.toJson(customHelloMessage);
|
||||
TUIMessageBean info = ChatMessageBuilder.buildCustomMessage(data, customHelloMessage.text, customHelloMessage.text.getBytes());
|
||||
mChatLayout.sendMessage(info, false);
|
||||
}
|
||||
});
|
||||
mInputMoreActionList.add(actionUnit);
|
||||
// actionUnit = new InputMoreItem() {};
|
||||
// actionUnit.setIconResId(R.drawable.chat_more_input_custom_message);
|
||||
// actionUnit.setName(getResources().getString(R.string.test_custom_action));
|
||||
// actionUnit.setActionId(CustomHelloMessage.CUSTOM_HELLO_ACTION_ID);
|
||||
// actionUnit.setPriority(10);
|
||||
// actionUnit.setOnClickListener(actionUnit.new OnActionClickListener() {
|
||||
// @Override
|
||||
// public void onClick() {
|
||||
// Gson gson = new Gson();
|
||||
// CustomHelloMessage customHelloMessage = new CustomHelloMessage();
|
||||
// customHelloMessage.version = TUIChatConstants.version;
|
||||
//
|
||||
// String data = gson.toJson(customHelloMessage);
|
||||
// TUIMessageBean info = ChatMessageBuilder.buildCustomMessage(data, customHelloMessage.text, customHelloMessage.text.getBytes());
|
||||
// mChatLayout.sendMessage(info, false);
|
||||
// }
|
||||
// });
|
||||
// mInputMoreActionList.add(actionUnit);
|
||||
}
|
||||
|
||||
List<InputMoreItem> extensionList = getExtensionInputMoreList();
|
||||
|
||||
@@ -1336,24 +1336,24 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
||||
}
|
||||
|
||||
if (!excludeItems.contains(TUIChatConfigMinimalist.CUSTOM) && TUIChatConfigMinimalist.isShowInputBarCustom()) {
|
||||
InputMoreItem helloMessage = new InputMoreItem() {};
|
||||
helloMessage.setIconResId(R.drawable.chat_minimalist_more_action_custom_icon);
|
||||
helloMessage.setName(getResources().getString(R.string.test_custom_action));
|
||||
helloMessage.setActionId(CustomHelloMessage.CUSTOM_HELLO_ACTION_ID);
|
||||
helloMessage.setPriority(10);
|
||||
helloMessage.setOnClickListener(helloMessage.new OnActionClickListener() {
|
||||
@Override
|
||||
public void onClick() {
|
||||
Gson gson = new Gson();
|
||||
CustomHelloMessage customHelloMessage = new CustomHelloMessage();
|
||||
customHelloMessage.version = TUIChatConstants.version;
|
||||
|
||||
String data = gson.toJson(customHelloMessage);
|
||||
TUIMessageBean info = ChatMessageBuilder.buildCustomMessage(data, customHelloMessage.text, customHelloMessage.text.getBytes());
|
||||
mChatLayout.sendMessage(info, false);
|
||||
}
|
||||
});
|
||||
mInputMoreActionList.add(helloMessage);
|
||||
// InputMoreItem helloMessage = new InputMoreItem() {};
|
||||
// helloMessage.setIconResId(R.drawable.chat_minimalist_more_action_custom_icon);
|
||||
// helloMessage.setName(getResources().getString(R.string.test_custom_action));
|
||||
// helloMessage.setActionId(CustomHelloMessage.CUSTOM_HELLO_ACTION_ID);
|
||||
// helloMessage.setPriority(10);
|
||||
// helloMessage.setOnClickListener(helloMessage.new OnActionClickListener() {
|
||||
// @Override
|
||||
// public void onClick() {
|
||||
// Gson gson = new Gson();
|
||||
// CustomHelloMessage customHelloMessage = new CustomHelloMessage();
|
||||
// customHelloMessage.version = TUIChatConstants.version;
|
||||
//
|
||||
// String data = gson.toJson(customHelloMessage);
|
||||
// TUIMessageBean info = ChatMessageBuilder.buildCustomMessage(data, customHelloMessage.text, customHelloMessage.text.getBytes());
|
||||
// mChatLayout.sendMessage(info, false);
|
||||
// }
|
||||
// });
|
||||
// mInputMoreActionList.add(helloMessage);
|
||||
}
|
||||
|
||||
mInputMoreActionList.addAll(getExtensionInputMoreList());
|
||||
|
||||
Reference in New Issue
Block a user