调整个人名片

This commit is contained in:
zlzw 2022-11-10 13:22:40 +08:00
parent 44a05ea0d5
commit 134cdf2e2a

View File

@ -242,6 +242,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
mNobleTitleVal = mRootView.findViewById(R.id.noble_title_val); mNobleTitleVal = mRootView.findViewById(R.id.noble_title_val);
mHonorLayout = mRootView.findViewById(R.id.honor_layout); mHonorLayout = mRootView.findViewById(R.id.honor_layout);
mTitleBg = mRootView.findViewById(R.id.title_bg); mTitleBg = mRootView.findViewById(R.id.title_bg);
mNobleIconLayout.setOnClickListener(this);
mHonorLayout.setOnClickListener(v -> forwardHomePage()); mHonorLayout.setOnClickListener(v -> forwardHomePage());
} }
@ -291,9 +292,11 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
} }
} }
boolean isAnchor = false;
private void showData(String data) { private void showData(String data) {
isAnchor = mLiveUid.equals(mToUid);
Log.i(TAG, "showData: " + data); Log.i(TAG, "showData: " + data);
boolean isAnchor = mLiveUid.equals(mToUid);
JSONObject obj = JSON.parseObject(data); JSONObject obj = JSON.parseObject(data);
mUserBean = JSON.toJavaObject(obj, UserBean.class); mUserBean = JSON.toJavaObject(obj, UserBean.class);
if (mUserBean.getIslive().equals("1")) { if (mUserBean.getIslive().equals("1")) {
@ -615,6 +618,11 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
((LiveActivity) mContext).openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity); ((LiveActivity) mContext).openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity);
} else if (i == R.id.btn_live) { } else if (i == R.id.btn_live) {
gotoLive(mToUid); gotoLive(mToUid);
} else if (i == R.id.noble_icon_layout) {
if (isAnchor) {
dismiss();
((LiveActivity) mContext).openFansWindow();
}
} }
} }
} }