From 0d93c91e65c938663f89f527f3c32a5535892520 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 1 Sep 2022 14:43:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=B4=BB=E5=8A=A8banner?= =?UTF-8?q?=E6=B2=A1=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 4 ++-- live/src/main/res/layout/dialog_new_guard_buy.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 82a6d9788..dee0c6ec6 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -871,7 +871,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mChatRecyclerView.setLayoutParams(params1); }); - mBanner2.setVisibility(View.GONE); if (fastMsgRecyclerView.getVisibility() == View.GONE) { params1.bottomMargin = 0; mChatRecyclerView.setLayoutParams(params1); @@ -963,8 +962,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mBannerList2.add(bannerBean); } } - if (mBannerList2.size() <= 0) { + if (mBannerList2.isEmpty()) { btn_event2.setVisibility(View.GONE); + mBanner2.setVisibility(View.GONE); } showBanner2(); } else { diff --git a/live/src/main/res/layout/dialog_new_guard_buy.xml b/live/src/main/res/layout/dialog_new_guard_buy.xml index 4fc4a2ab1..f206a8a67 100644 --- a/live/src/main/res/layout/dialog_new_guard_buy.xml +++ b/live/src/main/res/layout/dialog_new_guard_buy.xml @@ -284,7 +284,7 @@ android:layout_height="match_parent" android:layout_centerInParent="true" - android:scaleType="centerCrop" + android:scaleType="fitCenter" android:src="@drawable/guardian_img_two" android:visibility="visible" app:autoPlay="true" />