diff --git a/common/src/main/res/layout/dialog_live_new_function.xml b/common/src/main/res/layout/dialog_live_new_function.xml index 71b870fd4..234b8cb67 100644 --- a/common/src/main/res/layout/dialog_live_new_function.xml +++ b/common/src/main/res/layout/dialog_live_new_function.xml @@ -264,7 +264,7 @@ android:layout_marginStart="23dp" android:gravity="center" android:orientation="vertical" - android:visibility="gone"> + android:visibility="visible"> "); + Bus.getOff(this); } @@ -1275,4 +1284,25 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl L.e(TAG, content); LogUtil.print(mLogFile, content); } + @Subscribe(threadMode = ThreadMode.MAIN) + public void onOpenDrawer(LiveAudienceEvent event) { + Bundle bundle = new Bundle(); + IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo(); + switch (event.getType()) { + case LIVE_WKS: + String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid=" + + userInfo.getId() + + "&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid; + ZhuangBanActivity.forward(mContext, weeklyStarUrl, false); + break; + case WISH_LIST: + LiveWishListDialogFragment4Audience fragment4Audience = new LiveWishListDialogFragment4Audience(); + bundle.putString(Constants.LIVE_UID, mLiveUid); + fragment4Audience.setArguments(bundle); + if (mContext instanceof LiveRyAnchorActivity) { + fragment4Audience.show(((LiveRyAnchorActivity) mContext).getSupportFragmentManager(), "LiveWishListDialogFragment4Audience"); + } + break; + } + } }