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();