修复滑动直播间,部分UI未还原问题
This commit is contained in:
parent
0a090301df
commit
dc8f32062c
@ -1071,6 +1071,28 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void resetView() {
|
||||||
|
goto_room_view.setVisibility(View.GONE);
|
||||||
|
if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) {
|
||||||
|
msgLayout.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
if (!IMLoginManager.get(mContext).hintChat()) {
|
||||||
|
msgLayout.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
if (LivePushTxViewHolder.mTRTCCloud != null || LivePushRyViewHolder.rtcRoom != null) {
|
||||||
|
fans_btn.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
mPkRankTopIcon.setVisibility(View.GONE);
|
||||||
|
lt_pk_line.setVisibility(View.GONE);
|
||||||
|
time.setVisibility(View.GONE);
|
||||||
|
mBannerList1.clear();
|
||||||
|
mBannerList2.clear();
|
||||||
|
mBannerList3.clear();
|
||||||
|
mBannerList4.clear();
|
||||||
|
updataCleanMic();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void clearChat() {
|
public void clearChat() {
|
||||||
if (mLiveChatAdapter != null) {
|
if (mLiveChatAdapter != null) {
|
||||||
mLiveChatAdapter.clear();
|
mLiveChatAdapter.clear();
|
||||||
|
@ -265,6 +265,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mask.setVisibility(View.VISIBLE);
|
mask.setVisibility(View.VISIBLE);
|
||||||
mLivePlayViewHolder.setCover(data.getThumb());
|
mLivePlayViewHolder.setCover(data.getThumb());
|
||||||
mLivePlayViewHolder.play(data.getPull());
|
mLivePlayViewHolder.play(data.getPull());
|
||||||
|
mLiveRoomViewHolder.resetView();
|
||||||
mLiveRoomViewHolder.clearChat();
|
mLiveRoomViewHolder.clearChat();
|
||||||
mLiveRoomViewHolder.setAvatar(data.getAvatar());
|
mLiveRoomViewHolder.setAvatar(data.getAvatar());
|
||||||
mLiveRoomViewHolder.setAnchorLevel(data.getLevelAnchor());
|
mLiveRoomViewHolder.setAnchorLevel(data.getLevelAnchor());
|
||||||
|
Loading…
Reference in New Issue
Block a user