From 985e626cb5d1c24b335c11dfc2ad55b6191b9287 Mon Sep 17 00:00:00 2001 From: Martin <13046765170@163.com> Date: Sat, 1 Jun 2024 17:31:01 +0800 Subject: [PATCH] =?UTF-8?q?fix[=E4=BF=AE=E5=A4=8D=E8=9E=8D=E4=BA=91?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=EF=BC=8C=E4=B8=8A=E4=B8=8B=E6=BB=91?= =?UTF-8?q?=E5=8A=A8=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/views/LivePlayRyViewHolder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java index c3cf5e695..e6a66e1e7 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java @@ -670,7 +670,10 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(DpUtil.dp2px(24), DpUtil.dp2px(24)); params.addRule(RelativeLayout.CENTER_IN_PARENT); mLoading.setLayoutParams(params); - mRoot.addView(mLoading); + System.out.println(" changeToBig changeToBig changeToBig"+mLoading.getParent()); + if(mLoading.getParent()!=mRoot){ + mRoot.addView(mLoading); + } } }