diff --git a/live/src/main/java/com/yunbao/live/activity/PDLIiveChatActivity.java b/live/src/main/java/com/yunbao/live/activity/PDLIiveChatActivity.java index 348f1033d..a57ef0f4d 100644 --- a/live/src/main/java/com/yunbao/live/activity/PDLIiveChatActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/PDLIiveChatActivity.java @@ -195,6 +195,7 @@ public class PDLIiveChatActivity extends FragmentActivity { @Override protected void onDestroy() { super.onDestroy(); + EventBus.getDefault().post(new io.rong.imlib.model.Message()); Bus.getOff(this); } diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index b1f954f88..2bcbc5c57 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1009,7 +1009,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis @Override public void onResume() { super.onResume(); - changeMsgView(msg2, msg); reloadIM(); } @@ -1704,11 +1703,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } else if (i == R.id.user_guard) { // ((LiveActivity) mContext).openUserMoreListWindow(2, true); ((LiveActivity) mContext).openNewGuardListWindow(); - } else if (i == R.id.room_msg) { - changeMsgView(msg, msg2); - } else if (i == R.id.room_msg_user) { - changeMsgView(msg2, msg); - } else if (i == R.id.lt_trickery) { + } if (i == R.id.lt_trickery) { showTrickeryDialog(); } @@ -1805,11 +1800,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (userInfo != null) { ImgLoader.display(mContext, userInfo.getPortraitUri().toString(), msgUserIcon); } - break; + return; } - } } + changeMsgView(msg2,msg); } @Override