From e89e8a413f6a32e4a4759f3d411b321e3088d230 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 10 Aug 2022 22:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98,shouye=20ytuijian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/manager/SearchHistoryRecordManager.java | 2 +- .../main/java/com/yunbao/live/views/LiveEndViewHolder.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/manager/SearchHistoryRecordManager.java b/common/src/main/java/com/yunbao/common/manager/SearchHistoryRecordManager.java index de343138c..b3466ecf1 100644 --- a/common/src/main/java/com/yunbao/common/manager/SearchHistoryRecordManager.java +++ b/common/src/main/java/com/yunbao/common/manager/SearchHistoryRecordManager.java @@ -74,7 +74,7 @@ public class SearchHistoryRecordManager extends BaseCacheManager { * @param value 备注信息 */ public void addHistoryRecord(String key, String value) { - + if (historyRecordList == null) return; if (historyRecordList.size() == 10) { historyRecordList.remove(0); } diff --git a/live/src/main/java/com/yunbao/live/views/LiveEndViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveEndViewHolder.java index fa105b125..3a71e5530 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveEndViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveEndViewHolder.java @@ -331,10 +331,10 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList } }); - + Bus.get().post(new CloseEvent()); mCheckLivePresenter.checkLive(liveBean); } else { - + Bus.get().post(new CloseEvent()); RouteUtil.forwardUserHome(mContext, String.valueOf(event.getModel().getId()), 0); if (mContext instanceof LiveAnchorActivity) { ((LiveAnchorActivity) mContext).superBackPressed();