测试修改
This commit is contained in:
parent
c0fa59ce64
commit
8aefa10ef8
@ -54,7 +54,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
* @return
|
||||
*/
|
||||
public boolean isSlide() {
|
||||
return getBoolean(IS_SLIDE, false);
|
||||
return getBoolean(IS_SLIDE, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -387,12 +387,14 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
} else {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -236,7 +236,7 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
||||
((LiveActivity) mContext).sendDanmuMessage(content);
|
||||
break;
|
||||
case GENERALMESSAGE:
|
||||
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(),atTextWatcher.getAtUserName() );
|
||||
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
|
||||
atTextWatcher.clearMsg();
|
||||
dismiss();
|
||||
break;
|
||||
@ -370,6 +370,12 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onLiveInputEvent(LiveInputEvent event) {
|
||||
atTextWatcher.insertTextForAt(event.getModel(), mInput);
|
||||
new Handler().postDelayed(() -> {
|
||||
|
||||
mInput.requestFocus();
|
||||
//软键盘弹出
|
||||
imm.showSoftInput(mInput, InputMethodManager.SHOW_FORCED);
|
||||
}, 600);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2003,11 +2003,12 @@
|
||||
android:layout_height="27.33dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="10dp"
|
||||
|
||||
android:visibility="gone" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/at_message"
|
||||
android:layout_width="106.67dp"
|
||||
android:layout_width="87.67dp"
|
||||
android:layout_height="27.33dp"
|
||||
android:layout_above="@id/new_message"
|
||||
android:layout_alignParentBottom="true"
|
||||
|
Loading…
Reference in New Issue
Block a user