From 5cda11c96f6ce7fa0984c94486adbd20a4cb9290 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 29 Aug 2022 17:14:22 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=AE=88=E6=8A=A4=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=B9=E7=89=88=20-=E8=A1=A5=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/activity/LiveActivity.java | 6 +----- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/activity/LiveActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveActivity.java index a688465dd..25d86311b 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveActivity.java @@ -135,7 +135,6 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL private LiveChatRoomDialogFragment mLiveChatRoomDialogFragment;//私信聊天窗口 protected LiveGuardInfo mLiveGuardInfo; private HashSet mDialogFragmentSet; - private LiveEnterRoomBean userBean;//用户信息 // public static boolean isRy = true; @Override @@ -263,9 +262,6 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL mLiveRoomViewHolder.onEnterRoom(bean); } } - public void setEnterRoomData(LiveEnterRoomBean bean){ - userBean=bean; - } /** @@ -1334,7 +1330,7 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL bundle.putString(Constants.LIVE_ANCHER_NAME, mAncherName); bundle.putString(Constants.STREAM, mStream); bundle.putString(Constants.LIVE_ANCHER_ICON,mAncherIcon); - bundle.putString(Constants.USER_ICON,userBean.getUserBean().getAvatar()); + bundle.putString(Constants.USER_ICON,CommonAppConfig.getInstance().getUserBean().getAvatar()); fragment.setArguments(bundle); fragment.show(getSupportFragmentManager(), "LiveGuardBuyDialogFragment"); } 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 c826be3c7..3e48e6ada 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1811,7 +1811,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } setGuardIcon(tmp); } - ((LiveActivity)mContext).setEnterRoomData(bean); } /**