1001 速度过快null
This commit is contained in:
@@ -2017,7 +2017,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
private var isPreloaded = false
|
||||
|
||||
private fun handleMsgType1001(roomMessageEvent: RoomMessageEvent) {
|
||||
if (roomMessageEvent.text.fromUserInfo.enter_image?.isNotEmpty() == true) {
|
||||
if (roomMessageEvent.text.fromUserInfo != null &&roomMessageEvent.text.fromUserInfo.enter_image?.isNotEmpty() == true) {
|
||||
showFloatingMessage(roomMessageEvent.text.fromUserInfo)
|
||||
}
|
||||
|
||||
@@ -2081,9 +2081,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
layoutParams.gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL
|
||||
currentMqttView?.setLayoutParams(layoutParams)
|
||||
decorView?.addView(currentMqttView)
|
||||
currentMqttView?.let { updateFloatingViewData(it, userInfo) }
|
||||
|
||||
currentMqttView?.let {
|
||||
updateFloatingViewData(it, userInfo)
|
||||
resetAndStartMqttAnimation(it, Runnable {
|
||||
// 清理当前视图
|
||||
if (currentMqttView?.getParent() != null) {
|
||||
|
||||
Reference in New Issue
Block a user