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

View File

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

View File

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