From 134cdf2e2a9659c82d7162c84c9f3e7983cb79e5 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 10 Nov 2022 13:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E4=BA=BA=E5=90=8D?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/LiveUserDialogFragment.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java index ffaaa9ce8..f39936720 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java @@ -242,6 +242,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On mNobleTitleVal = mRootView.findViewById(R.id.noble_title_val); mHonorLayout = mRootView.findViewById(R.id.honor_layout); mTitleBg = mRootView.findViewById(R.id.title_bg); + mNobleIconLayout.setOnClickListener(this); mHonorLayout.setOnClickListener(v -> forwardHomePage()); } @@ -291,9 +292,11 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On } } + boolean isAnchor = false; + private void showData(String data) { + isAnchor = mLiveUid.equals(mToUid); Log.i(TAG, "showData: " + data); - boolean isAnchor = mLiveUid.equals(mToUid); JSONObject obj = JSON.parseObject(data); mUserBean = JSON.toJavaObject(obj, UserBean.class); if (mUserBean.getIslive().equals("1")) { @@ -615,6 +618,11 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On ((LiveActivity) mContext).openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity); } else if (i == R.id.btn_live) { gotoLive(mToUid); + } else if (i == R.id.noble_icon_layout) { + if (isAnchor) { + dismiss(); + ((LiveActivity) mContext).openFansWindow(); + } } } }