From af23094df755ac690b28d935f24ba24cc744e5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Tue, 5 Nov 2024 17:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E5=A4=9A=E4=BA=BAPK=E6=97=B6=EF=BC=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=B5=A0=E9=80=81=E7=A4=BC=E7=89=A9=E5=90=8E=EF=BC=8CPK?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=92=8C=E5=88=86=E6=95=B0=E7=AD=89View?= =?UTF-8?q?=E9=97=AA=E7=83=81=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 1eab1b5f3..920c09efd 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -6115,6 +6115,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mRoot.removeView(detailsView); }*/ + // TODO 这里可能存在问题,需要问何 if (detailsView == null){ L.eSw("upDataPkScore(JSONArray pkScores, int time) {detailsView=null"); detailsView = LayoutInflater.from(mContext).inflate(R.layout.view_live_pk_details, null); @@ -6136,8 +6137,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis imageGrade2 = detailsView.findViewById(R.id.image_grade2); imageGrade3 = detailsView.findViewById(R.id.image_grade3); imageGrade4 = detailsView.findViewById(R.id.image_grade4); + } + + if (detailsView.getParent() == null){ + L.eSw("detailsView 添加到了 mRoot"); mRoot.addView(detailsView); } + linearGrade1.setVisibility(View.GONE); linearGrade2.setVisibility(View.GONE); linearGrade3.setVisibility(View.GONE);