测试修改

This commit is contained in:
18401019693 2022-10-10 18:03:13 +08:00
parent c0fa59ce64
commit 8aefa10ef8
4 changed files with 17 additions and 8 deletions

View File

@ -54,7 +54,7 @@ public class IMLoginManager extends BaseCacheManager {
* @return * @return
*/ */
public boolean isSlide() { public boolean isSlide() {
return getBoolean(IS_SLIDE, false); return getBoolean(IS_SLIDE, true);
} }
/** /**

View File

@ -387,12 +387,14 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
} else { } else {
Bus.get().post(new LiveAudienceEvent() Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER)); .setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER));
if (bean.getAtUserID()!=null&&bean.getAtUserID().contains(String.valueOf(model.getId()))) {
Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE));
mPosition = size + 1;
}
} }
if (bean.getAtUserID()!=null&&bean.getAtUserID().contains(String.valueOf(model.getId()))) {
Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE));
mPosition = size + 1;
}
} }
/** /**

View File

@ -236,7 +236,7 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
((LiveActivity) mContext).sendDanmuMessage(content); ((LiveActivity) mContext).sendDanmuMessage(content);
break; break;
case GENERALMESSAGE: case GENERALMESSAGE:
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(),atTextWatcher.getAtUserName() ); ((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
atTextWatcher.clearMsg(); atTextWatcher.clearMsg();
dismiss(); dismiss();
break; break;
@ -370,6 +370,12 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
@Subscribe(threadMode = ThreadMode.MAIN) @Subscribe(threadMode = ThreadMode.MAIN)
public void onLiveInputEvent(LiveInputEvent event) { public void onLiveInputEvent(LiveInputEvent event) {
atTextWatcher.insertTextForAt(event.getModel(), mInput); atTextWatcher.insertTextForAt(event.getModel(), mInput);
new Handler().postDelayed(() -> {
mInput.requestFocus();
//软键盘弹出
imm.showSoftInput(mInput, InputMethodManager.SHOW_FORCED);
}, 600);
} }

View File

@ -2003,11 +2003,12 @@
android:layout_height="27.33dp" android:layout_height="27.33dp"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:visibility="gone" /> android:visibility="gone" />
<ImageView <ImageView
android:id="@+id/at_message" android:id="@+id/at_message"
android:layout_width="106.67dp" android:layout_width="87.67dp"
android:layout_height="27.33dp" android:layout_height="27.33dp"
android:layout_above="@id/new_message" android:layout_above="@id/new_message"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"