feat:【Habu】隐藏分享、游戏房入口
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user