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); + } } }