修复:
新人引导送礼与快捷消息布局冲突问题
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user