From 0fcadde67018975e5ccb9d57c9e65bc6451e28f6 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 13 Dec 2022 16:00:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=A4=A9=E6=A2=AF?= =?UTF-8?q?=E8=B5=9B=E8=BF=9E=E8=83=9C=E6=A0=87=E8=AF=86=E9=80=9A=E8=BF=87?= =?UTF-8?q?PK-=E5=B0=8F=E5=A4=B4=E5=83=8F-=E4=B8=BB=E9=A1=B5-=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=96=B9=E5=BC=8F=E6=8D=A2=E6=88=BF=E9=97=B4=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=A2=AB=E6=B8=85=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/RandomPkDialogFragment.java | 4 ++-- .../java/com/yunbao/live/views/LiveRoomViewHolder.java | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java index a8552e9aa..aaae1d485 100644 --- a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java @@ -135,7 +135,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On mRandomPkSwitch.setOnClickListener(this); mPkBtn.setOnClickListener(this); mPkBtn.setTag(false); - mPkBtn.setOnLongClickListener(v -> { + /*mPkBtn.setOnLongClickListener(v -> { DialogUitl.showSimpleInputDialog(mContext, "输入指定UID", new DialogUitl.SimpleCallback() { @Override public void onConfirmClick(Dialog dialog, String content) { @@ -145,7 +145,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On } }); return false; - }); + });*/ } private void initData() { 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 a740bc551..3fef94002 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -280,7 +280,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis private static int mPkTimeCount;//pk时间 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 String uidL1, uidL2, uidL3, uidR1, uidR2, uidR3; public RelativeLayout lt_pk_line; @@ -1118,6 +1118,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (LivePushTxViewHolder.mTRTCCloud != null || LivePushRyViewHolder.rtcRoom != null) { 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) { + mRedVal.setVisibility(View.GONE); + mBlueVal.setVisibility(View.GONE); + mPkRankTopIcon.setVisibility(View.GONE); LiveNetManager.get(mContext) .getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback() { @Override