调整底栏跳活动id

This commit is contained in:
zlzw 2022-10-27 17:22:20 +08:00
parent 32832654ef
commit 135f8f5be3
2 changed files with 3 additions and 15 deletions

View File

@ -727,26 +727,15 @@ public class LiveAudienceActivity extends LiveActivity {
liveGiftDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGiftDialogFragment"); liveGiftDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGiftDialogFragment");
break; break;
case CURRENT_ACTIVITY: case CURRENT_ACTIVITY:
int type = 0; String type = event.getModel().getActiveId();
if (TextUtils.equals(event.getModel().getActiveName(), "闖關熱戀")) {
type = 0;
} else if (TextUtils.equals(event.getModel().getActiveName(), "甜蜜約會")) {
type = 1;
} else if (TextUtils.equals(event.getModel().getActiveName(), "娛樂整蠱")) {
type = 3;
} else if (TextUtils.equals(event.getModel().getActiveName(), "怪物大作戰")) {
type = 4;
} else if (TextUtils.equals(event.getModel().getActiveName(), "動感零鉆購")) {
type = 2;
}
LiveGameDialogFragment currentFragment = new LiveGameDialogFragment(); LiveGameDialogFragment currentFragment = new LiveGameDialogFragment();
currentFragment.selectIndex(type); currentFragment.setActivityId(Integer.parseInt(type));
currentFragment.setRoomId(mLiveUid); currentFragment.setRoomId(mLiveUid);
currentFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment"); currentFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
break; break;
case WE_CHEAT: case WE_CHEAT:
LiveGameDialogFragment fragment = new LiveGameDialogFragment(); LiveGameDialogFragment fragment = new LiveGameDialogFragment();
fragment.selectIndex(3); fragment.setActivityId(6);
fragment.setRoomId(mLiveUid); fragment.setRoomId(mLiveUid);
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment"); fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
break; break;

View File

@ -238,7 +238,6 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
return; return;
} }
} }
dismiss();
} }
private void selectTab(int position) { private void selectTab(int position) {