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 677c85fe0..fa1b021fb 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java @@ -460,7 +460,6 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mVideoView.getLayoutParams(); params.height = height; params.topMargin = 0; - params.topMargin = mContext.getResources().getDimensionPixelOffset(R.dimen.live_top); params.addRule(RelativeLayout.ALIGN_TOP); mVideoView.setLayoutParams(params); mVideoView.requestLayout(); @@ -468,7 +467,6 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { RelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams) ry_view.getLayoutParams(); params1.height = height; params1.topMargin = 0; - params1.topMargin = mContext.getResources().getDimensionPixelOffset(R.dimen.live_top); ry_view.setLayoutParams(params1); ry_view.requestLayout(); RelativeLayout.LayoutParams params2 = (RelativeLayout.LayoutParams) mCover.getLayoutParams();