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" />