fix[修复融云直播间,上下滑动闪退问题]

This commit is contained in:
Martin 2024-06-01 17:31:01 +08:00
parent efce2ad93c
commit 985e626cb5

View File

@ -670,7 +670,10 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(DpUtil.dp2px(24), DpUtil.dp2px(24)); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(DpUtil.dp2px(24), DpUtil.dp2px(24));
params.addRule(RelativeLayout.CENTER_IN_PARENT); params.addRule(RelativeLayout.CENTER_IN_PARENT);
mLoading.setLayoutParams(params); mLoading.setLayoutParams(params);
mRoot.addView(mLoading); System.out.println(" changeToBig changeToBig changeToBig"+mLoading.getParent());
if(mLoading.getParent()!=mRoot){
mRoot.addView(mLoading);
}
} }
} }