[Modify]特权卡提示,礼物面板调整

This commit is contained in:
wushaocheng
2023-08-21 15:41:41 +08:00
parent 87b4ea4935
commit a304b4b07b
10 changed files with 291 additions and 91 deletions

View File

@@ -121,9 +121,10 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
private volatile boolean disable;
private boolean isChat;
private String hintText;
public InputPanel(Container container, View view, List<BaseAction> actions, boolean isTextAudioSwitchShow) {
this.container = container;
this.view = view;
@@ -952,14 +953,15 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
container.proxy.sendMessage(customMessage);
}
public void setLimitLevel(boolean isChat, String msg) {
public void setLimitLevel(boolean isChat, String hintText) {
this.isChat = isChat;
this.hintText = hintText;
setEditTextState();
}
private void setEditTextState() {
if (!isChat) {
messageEditText.setHint("暂未达到可发起私聊等级");
messageEditText.setHint(hintText);
messageEditText.setFocusable(false);
messageEditText.setFocusableInTouchMode(false);
messageEditText.setEnabled(false);