From 0726c5dc1c6b500f1a05a6e5717cd53f107d3e2d Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Sat, 4 Mar 2023 16:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E4=BA=BAPK=E7=83=AD=E5=BA=A6=E5=8A=A0?= =?UTF-8?q?=E6=88=90=E9=97=AE=E9=A2=98=EF=BC=8C=E4=B8=BB=E6=92=AD=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/activity/LiveAudienceActivity.java | 2 +- .../java/com/yunbao/live/activity/LiveRyAnchorActivity.java | 6 ++++++ .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 6 ++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index 1238b0cc5..f0643f52f 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -52,7 +52,6 @@ import com.yunbao.common.bean.SlideInfoModel; import com.yunbao.common.bean.UserBean; import com.yunbao.common.dialog.EffectsSettingsDialog; import com.yunbao.common.dialog.FloatSettingsDialog; -import com.yunbao.common.dialog.HintDialog; import com.yunbao.common.dialog.LiveChargeDialogFragment; import com.yunbao.common.dialog.SlideSettingsDialog; import com.yunbao.common.dialog.YoursystemisolderDialog; @@ -1260,6 +1259,7 @@ public class LiveAudienceActivity extends LiveActivity { case SOCKET_LIVE_DRPK_SET_PK_END_VIEW: if (manager.getmLivePlayViewHolder() != null) { manager.getmLivePlayViewHolder().setPkEndview(); + manager.setPkStatus(false); } if (manager != null) { diff --git a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java index 9b031e2c4..cb9cf47ff 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java @@ -1566,11 +1566,17 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl if (mLiveRyLinkMicPkPresenter != null) { mLiveRyLinkMicPkPresenter.leaveDRRoom(); } + if (mLiveRoomViewHolder != null) { + mLiveRoomViewHolder.hotAddVisibility(false); + } break; case LEAVE_PK_SCORE: if (mLiveRyLinkMicPkPresenter != null) { mLiveRyLinkMicPkPresenter.upDataPkScore(event.getPkScores(), event.getUid(), event.getTime()); } + if (mLiveRoomViewHolder != null) { + mLiveRoomViewHolder.hotAddVisibility(true); + } break; case PK_TIME_COUNT: if (mLiveRoomViewHolder != null) { 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 3e47b1198..b60f80bc4 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -462,7 +462,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } } - private static boolean visibility =false; + private static boolean visibility = false; public void hotAddVisibility(boolean visibility) { this.visibility = visibility; @@ -472,6 +472,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void endDRGif() { if (dr_pk_end_gif.getVisibility() == View.GONE) { dr_pk_end_gif.setVisibility(View.VISIBLE); + visibility = false; RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置 Glide.with(mContext).asGif() .apply(options)//应用配置 @@ -1220,6 +1221,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis */ public void resetView() { resetViewGone(); + visibility = false; mBannerList1.clear(); mBannerList2.clear(); mBannerList3.clear(); @@ -3163,7 +3165,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis @Override public void onSuccess(int code, String msg, String[] info) { if (code == 0 && info.length > 0) { - if ("1".equals(info[0])) { + if ("1".equals(info[0]) && !visibility) { ft_hot_add.setVisibility(View.VISIBLE); } else { ft_hot_add.setVisibility(View.GONE);