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 1da87e78b..80ab25921 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -857,7 +857,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10); } }); - loadWishlistData(); //打招呼消息 fastMsgRecyclerView = (RecyclerView) findViewById(R.id.room_fast_msg); fastMsgRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false)); diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index b150e08d6..a29beed22 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -273,6 +273,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe @Override public void onRemove() { + end(); if (mLiveAudienceViewHolder != null) { mLiveAudienceViewHolder.removeFromParent(); mLiveAudienceViewHolder.countDownTimerTrickery = null; @@ -1286,20 +1287,14 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLivePlayViewHolder.release(); } mLivePlayViewHolder = null; - onRemove(); } public void end() { if (mLiveRoomViewHolder != null) mLiveRoomViewHolder.clearList(); - boolean canBackPressed = true; - if (mContext instanceof LiveAudienceActivity) { - canBackPressed = ((LiveAudienceActivity) mContext).canBackPressed(); - } + IMLoginManager.get(mContext).setisNewUserOne(false); - if (!mEnd && !canBackPressed) { - return; - } + if (countDownTimer != null) { countDownTimer.cancel(); countDownTimer = null; @@ -1309,13 +1304,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe if (LiveRoomViewHolder.isAttention == 0) { if (isStayRoomfive) { LiveRoomViewHolder.showFollowDialog(LiveRoomViewHolder.mNameText, LiveRoomViewHolder.mAvatarUrl, mContext); - } else { - backIndex = 1; - ((LiveAudienceActivity) mContext).onBackPressed(); } - } else { - backIndex = 1; - ((LiveAudienceActivity) mContext).onBackPressed(); } } else { exitLiveRoom(); @@ -1367,7 +1356,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe } }); endPlay(); - mContext.finish(); } catch (Exception e) { e.printStackTrace(); } diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 014378c7b..bd3b5f29f 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -227,11 +227,12 @@ android:layout_height="30dp" android:layout_marginTop="4dp" android:src="@mipmap/live_users_more" /> + @@ -239,7 +240,6 @@ - @@ -846,6 +846,7 @@