From 0f457efce6550730ecace424b9fa06b27f57d9d9 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 16 Nov 2022 14:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=85=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=9C=89top=E5=9B=BE=E7=89=87=E6=97=B6?= =?UTF-8?q?=E6=89=8D=E8=AE=A4=E4=B8=BA=E6=98=AF=E6=8E=92=E4=BD=8D=E8=B5=9B?= =?UTF-8?q?=E5=B9=B6=E6=98=BE=E7=A4=BAUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/views/LiveRoomViewHolder.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 f1baed586..b7e187654 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1540,6 +1540,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis pkRankVf.addView(titleIcon); pkRankVf.addView(hourView); pkRankVf.startFlipping(); + + if(StringUtil.isEmpty(bean.getPkTopImgUrl())){ + return; + } if(Integer.parseInt(bean.getRedVal())>2) { mRedVal.setVisibility(View.VISIBLE); mRedVal.setText(bean.getRedVal() + "連勝"); @@ -1548,7 +1552,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mBlueVal.setVisibility(View.VISIBLE); mBlueVal.setText(bean.getBlueVal() + "連勝"); } - //ImgLoader.display(mContext,bean.getPkTopImgUrl(),mPkRankTopIcon); + mPkRankTopIcon.setVisibility(View.VISIBLE); + ImgLoader.display(mContext,bean.getPkTopImgUrl(),mPkRankTopIcon); } }, Throwable::printStackTrace) .isDisposed(); @@ -1764,7 +1769,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis lt_pk_line.requestLayout(); lt_pk_line.setVisibility(View.VISIBLE); - mPkRankTopIcon.setVisibility(View.VISIBLE); img_pk_fist_l.setBackgroundResource(R.mipmap.icon_red_no1); img_pk_fist_r.setBackgroundResource(R.mipmap.icon_blue_no1); ImgLoader.display2((LiveActivity) Contexts, "", avatar_l1);