普通公屏聊天把之前的限制50个字 修改成 100个字。其他两个个不变

This commit is contained in:
18401019693
2023-11-14 11:31:20 +08:00
parent 04b1764f7b
commit aff5a178a0
5 changed files with 55 additions and 38 deletions

View File

@@ -229,6 +229,10 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
switch (messageType) {
case WORLDHORN:
if (trumpetNum > 0) {
if (content.length()>50){
ToastUtil.show(WordUtil.isNewZh()?"超出字數限制":"Exceed word limit");
return;
}
trumpetMsg = content;
LiveNetManager.get(getContext())
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
@@ -251,9 +255,17 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
break;
case POPUPSCREEN:
if (content.length()>50){
ToastUtil.show(WordUtil.isNewZh()?"超出字數限制":"Exceed word limit");
return;
}
((LiveActivity) mContext).sendDanmuMessage(content);
break;
case GENERALMESSAGE:
if (content.length()>100){
ToastUtil.show(WordUtil.isNewZh()?"超出字數限制":"Exceed word limit");
return;
}
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
atTextWatcher.clearMsg();
/* if (imm != null) {//收软键盘

View File

@@ -102,7 +102,6 @@
android:hint="@string/live_say_something"
android:imeActionLabel="@string/send"
android:imeOptions="actionSend"
android:maxLength="50"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:singleLine="true"

View File

@@ -46,7 +46,7 @@
<string name="more_than" >No recording has been recognized in over 10 seconds</string>
<string name="live_role_title" >Identity privilege</string>
<string name="noble_seat" >VIP seats</string>
<string name="live_mic_user_apply" >%s applies for connected wheat. Check whether</string>
<string name="live_mic_user_apply" >%s Applies for connected wheat. Check whether</string>
<string name="live_mic_user_down" >The wheat has been kicked off</string>
<string name="live_mic_invite" >An invitation has been sent and is waiting for the user to accept</string>
<string name="live_mic_request" >The request has been agreed and is awaiting acceptance by the user</string>