优化:调整直播间聊天输入框点击发送后不隐藏软键盘和聊天框

This commit is contained in:
zlzw 2023-03-21 10:05:02 +08:00
parent 420118b652
commit c2aba5da4b

View File

@ -218,19 +218,19 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
@Override
public void onSuccess(List<BaseModel> data) {
dismiss();
// dismiss();
ToastUtil.show(getResources().getString(R.string.use_successfully));
}
@Override
public void onError(String error) {
dismiss();
// dismiss();
ToastUtil.show(error);
}
});
} else {
ToastUtil.show(R.string.enough_speakers);
dismiss();
// dismiss();
}
break;
@ -240,10 +240,10 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
case GENERALMESSAGE:
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
atTextWatcher.clearMsg();
if (imm != null) {
/* if (imm != null) {//收软键盘
imm.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
}
dismiss();
}*/
// dismiss();
break;
}
mInput.setText("");