修复滑动直播间,部分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() {
|
||||
if (mLiveChatAdapter != null) {
|
||||
mLiveChatAdapter.clear();
|
||||
@ -1512,7 +1534,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
private void initPkRankView() {
|
||||
if(pkRankVf.getTag()!=null){
|
||||
if (pkRankVf.getTag() != null) {
|
||||
return;
|
||||
}
|
||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(20), DpUtil.dp2px(22));
|
||||
|
@ -265,6 +265,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
mask.setVisibility(View.VISIBLE);
|
||||
mLivePlayViewHolder.setCover(data.getThumb());
|
||||
mLivePlayViewHolder.play(data.getPull());
|
||||
mLiveRoomViewHolder.resetView();
|
||||
mLiveRoomViewHolder.clearChat();
|
||||
mLiveRoomViewHolder.setAvatar(data.getAvatar());
|
||||
mLiveRoomViewHolder.setAnchorLevel(data.getLevelAnchor());
|
||||
|
Loading…
Reference in New Issue
Block a user