调整底栏跳活动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");
break;
case CURRENT_ACTIVITY:
int type = 0;
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;
}
String type = event.getModel().getActiveId();
LiveGameDialogFragment currentFragment = new LiveGameDialogFragment();
currentFragment.selectIndex(type);
currentFragment.setActivityId(Integer.parseInt(type));
currentFragment.setRoomId(mLiveUid);
currentFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
break;
case WE_CHEAT:
LiveGameDialogFragment fragment = new LiveGameDialogFragment();
fragment.selectIndex(3);
fragment.setActivityId(6);
fragment.setRoomId(mLiveUid);
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
break;

View File

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