fix:修复天梯赛连胜标识通过PK-小头像-主页-跳转方式换房间不会被清空的问题

This commit is contained in:
zlzw 2022-12-13 16:00:17 +08:00
parent e522d04ead
commit 0fcadde670
2 changed files with 9 additions and 3 deletions

View File

@ -135,7 +135,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
mRandomPkSwitch.setOnClickListener(this); mRandomPkSwitch.setOnClickListener(this);
mPkBtn.setOnClickListener(this); mPkBtn.setOnClickListener(this);
mPkBtn.setTag(false); mPkBtn.setTag(false);
mPkBtn.setOnLongClickListener(v -> { /*mPkBtn.setOnLongClickListener(v -> {
DialogUitl.showSimpleInputDialog(mContext, "输入指定UID", new DialogUitl.SimpleCallback() { DialogUitl.showSimpleInputDialog(mContext, "输入指定UID", new DialogUitl.SimpleCallback() {
@Override @Override
public void onConfirmClick(Dialog dialog, String content) { public void onConfirmClick(Dialog dialog, String content) {
@ -145,7 +145,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
} }
}); });
return false; return false;
}); });*/
} }
private void initData() { private void initData() {

View File

@ -280,7 +280,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
private static int mPkTimeCount;//pk时间 private static int mPkTimeCount;//pk时间
public static ImageView img_pk_fist_l, img_pk_fist_r; public static ImageView img_pk_fist_l, img_pk_fist_r;
public static RoundedImageView avatar_l1, avatar_l2, avatar_l3, avatar_r1, avatar_r2, avatar_r3; public RoundedImageView avatar_l1, avatar_l2, avatar_l3, avatar_r1, avatar_r2, avatar_r3;
public static LivePKUserListBean livePKUserListBean; public static LivePKUserListBean livePKUserListBean;
public String uidL1, uidL2, uidL3, uidR1, uidR2, uidR3; public String uidL1, uidL2, uidL3, uidR1, uidR2, uidR3;
public RelativeLayout lt_pk_line; public RelativeLayout lt_pk_line;
@ -1118,6 +1118,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (LivePushTxViewHolder.mTRTCCloud != null || LivePushRyViewHolder.rtcRoom != null) { if (LivePushTxViewHolder.mTRTCCloud != null || LivePushRyViewHolder.rtcRoom != null) {
fans_btn.setVisibility(View.GONE); fans_btn.setVisibility(View.GONE);
} }
mRedVal.setVisibility(View.GONE);
mBlueVal.setVisibility(View.GONE);
mPkRankTopIcon.setVisibility(View.GONE);
} }
/** /**
@ -1665,6 +1668,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
public void initPkRank(String isLadders) { public void initPkRank(String isLadders) {
mRedVal.setVisibility(View.GONE);
mBlueVal.setVisibility(View.GONE);
mPkRankTopIcon.setVisibility(View.GONE);
LiveNetManager.get(mContext) LiveNetManager.get(mContext)
.getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() { .getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() {
@Override @Override