优化:调整直播间聊天输入框点击发送后不隐藏软键盘和聊天框
This commit is contained in:
parent
420118b652
commit
c2aba5da4b
@ -218,19 +218,19 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
|
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<BaseModel> data) {
|
public void onSuccess(List<BaseModel> data) {
|
||||||
dismiss();
|
// dismiss();
|
||||||
ToastUtil.show(getResources().getString(R.string.use_successfully));
|
ToastUtil.show(getResources().getString(R.string.use_successfully));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
dismiss();
|
// dismiss();
|
||||||
ToastUtil.show(error);
|
ToastUtil.show(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
ToastUtil.show(R.string.enough_speakers);
|
ToastUtil.show(R.string.enough_speakers);
|
||||||
dismiss();
|
// dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -240,10 +240,10 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
case GENERALMESSAGE:
|
case GENERALMESSAGE:
|
||||||
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
|
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
|
||||||
atTextWatcher.clearMsg();
|
atTextWatcher.clearMsg();
|
||||||
if (imm != null) {
|
/* if (imm != null) {//收软键盘
|
||||||
imm.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
|
||||||
}
|
}*/
|
||||||
dismiss();
|
// dismiss();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
mInput.setText("");
|
mInput.setText("");
|
||||||
|
Loading…
Reference in New Issue
Block a user