feat:【Habu】隐藏分享、游戏房入口

This commit is contained in:
Max
2023-11-15 18:21:54 +08:00
parent 9d63a90942
commit 7560110af2
3 changed files with 16 additions and 13 deletions

View File

@@ -171,11 +171,11 @@ public class HomePartyFragment extends BaseFragment implements View.OnClickListe
setupRoomTitleMarquee(); setupRoomTitleMarquee();
roomMore = mView.findViewById(R.id.room_more); roomMore = mView.findViewById(R.id.room_more);
ivRoomShare = mView.findViewById(R.id.iv_room_share); ivRoomShare = mView.findViewById(R.id.iv_room_share);
if (SuperAdminUtil.isSuperAdmin()) { // if (SuperAdminUtil.isSuperAdmin()) {
ivRoomShare.setVisibility(View.INVISIBLE); // ivRoomShare.setVisibility(View.INVISIBLE);
} else { // } else {
ivRoomShare.setVisibility(View.VISIBLE); // ivRoomShare.setVisibility(View.VISIBLE);
} // }
roomId = mView.findViewById(R.id.room_id); roomId = mView.findViewById(R.id.room_id);
mVsGift2View = mView.findViewById(R.id.vs_gift_view); mVsGift2View = mView.findViewById(R.id.vs_gift_view);
mIvGoodNumber = mView.findViewById(R.id.iv_good_number); mIvGoodNumber = mView.findViewById(R.id.iv_good_number);
@@ -288,14 +288,15 @@ public class HomePartyFragment extends BaseFragment implements View.OnClickListe
//这里的2和4是服务端定义的错误状态 关闭排麦模式和关闭PK模式! //这里的2和4是服务端定义的错误状态 关闭排麦模式和关闭PK模式!
private boolean isShowChangeGame() { private boolean isShowChangeGame() {
RoomInfo currentRoomInfo = AvRoomDataManager.get().mCurrentRoomInfo; return false;
return currentRoomInfo != null && // RoomInfo currentRoomInfo = AvRoomDataManager.get().mCurrentRoomInfo;
AvRoomDataManager.get().isRoomOwner() && // return currentRoomInfo != null &&
currentRoomInfo.getIsPermitRoom() != 1 && // AvRoomDataManager.get().isRoomOwner() &&
currentRoomInfo.getType() != RoomInfo.ROOM_TYPE_SINGLE && // currentRoomInfo.getIsPermitRoom() != 1 &&
(currentRoomInfo.getRoomModeType() == RoomModeType.NORMAL_MODE || // currentRoomInfo.getType() != RoomInfo.ROOM_TYPE_SINGLE &&
currentRoomInfo.getRoomModeType() == 2 || // (currentRoomInfo.getRoomModeType() == RoomModeType.NORMAL_MODE ||
currentRoomInfo.getRoomModeType() == 4); // currentRoomInfo.getRoomModeType() == 2 ||
// currentRoomInfo.getRoomModeType() == 4);
} }
public void setRoomBg(RoomInfo roomInfo) { public void setRoomBg(RoomInfo roomInfo) {

View File

@@ -61,6 +61,7 @@
android:button="@null" /> android:button="@null" />
<RadioButton <RadioButton
android:visibility="gone"
android:id="@+id/rb_game_room" android:id="@+id/rb_game_room"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@@ -201,6 +201,7 @@
</LinearLayout> </LinearLayout>
<ImageView <ImageView
android:visibility="gone"
android:id="@+id/iv_room_share" android:id="@+id/iv_room_share"
android:layout_width="@dimen/dp_20" android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"