fix财富等级图标
This commit is contained in:
@@ -123,8 +123,6 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
|
||||
|
||||
private int limitLevel;
|
||||
private int currentLevel;
|
||||
private int limitRegisterDay;
|
||||
private int currentRegisterDay;
|
||||
|
||||
public InputPanel(Container container, View view, List<BaseAction> actions, boolean isTextAudioSwitchShow) {
|
||||
this.container = container;
|
||||
@@ -419,19 +417,6 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
|
||||
private void onTextMessageSendButtonPressed() {
|
||||
String text = messageEditText.getText().toString();
|
||||
if (TextUtils.isEmpty(text.trim())) return;
|
||||
// if (limitLevel <= 1 && currentRegisterDay < limitRegisterDay) {
|
||||
// SingleToastUtil.showToastShort("注册时间满"+limitRegisterDay+"天才能发起聊天");
|
||||
// return;
|
||||
// }
|
||||
// if (currentLevel < limitLevel && limitRegisterDay < 1){
|
||||
// SingleToastUtil.showToastShort("等级满" + limitLevel + "才能发起聊天");
|
||||
// return;
|
||||
// }
|
||||
if (currentRegisterDay < limitRegisterDay && currentLevel < limitLevel){
|
||||
SingleToastUtil.showToastShort("注册时间满" + limitRegisterDay + "天或等级满" + limitLevel + "才能发起聊天");
|
||||
return;
|
||||
}
|
||||
|
||||
EventBus.getDefault().post(new ActiveEvent());
|
||||
IMMessage textMessage = createTextMessage(text);
|
||||
if (AntiSpamUtil.checkLocalAntiSpam(textMessage)) {
|
||||
@@ -975,30 +960,28 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
|
||||
container.proxy.sendMessage(customMessage);
|
||||
}
|
||||
|
||||
public void setLimitLevel(int limitLevel, int currentLevel,int limitRegisterDay,int currentRegisterDay) {
|
||||
public void setLimitLevel(int limitLevel, int currentLevel) {
|
||||
this.limitLevel = limitLevel;
|
||||
this.currentLevel = currentLevel;
|
||||
this.limitRegisterDay = limitRegisterDay;
|
||||
this.currentRegisterDay = currentRegisterDay;
|
||||
setEditTextState();
|
||||
}
|
||||
|
||||
private void setEditTextState() {
|
||||
// if (currentLevel < limitLevel) {
|
||||
// messageEditText.setHint("用户等级不足" + limitLevel + "级, 不可以发言哦");
|
||||
// messageEditText.setFocusable(false);
|
||||
// messageEditText.setFocusableInTouchMode(false);
|
||||
// messageEditText.setEnabled(false);
|
||||
// moreFuntionButtonInInputBar.setEnabled(false);
|
||||
// sendMessageButtonInInputBar.setEnabled(false);
|
||||
// } else {
|
||||
if (currentLevel < limitLevel) {
|
||||
messageEditText.setHint("用户等级不足" + limitLevel + "级, 不可以发言哦");
|
||||
messageEditText.setFocusable(false);
|
||||
messageEditText.setFocusableInTouchMode(false);
|
||||
messageEditText.setEnabled(false);
|
||||
moreFuntionButtonInInputBar.setEnabled(false);
|
||||
sendMessageButtonInInputBar.setEnabled(false);
|
||||
} else {
|
||||
messageEditText.setHint("请输入消息");
|
||||
messageEditText.setFocusable(true);
|
||||
messageEditText.setFocusableInTouchMode(true);
|
||||
messageEditText.setEnabled(true);
|
||||
moreFuntionButtonInInputBar.setEnabled(true);
|
||||
sendMessageButtonInInputBar.setEnabled(true);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user