同步peko:修复公会高管设置入口展示问题

This commit is contained in:
Max
2023-12-13 14:47:27 +08:00
parent c68c254073
commit 103f6a2744
2 changed files with 6 additions and 0 deletions

View File

@@ -220,6 +220,11 @@ public class ModuleHallActivity extends BaseMvpActivity<IModuleHallView, ModuleH
HallInfo hallInfo = clanAndHallInfo.getHall();
clanInfo = clanAndHallInfo.getClan();
setManegeOption((HallDataManager.get().isManager() && isSelfHall) || clanAndHallInfo.isManageHall());
int roleType = 0;
if (hallInfo != null) {
roleType = hallInfo.getRoleType();
}
binding.tvManageSetup.setVisibility(roleType == RoleType.OWNER ? View.VISIBLE : View.INVISIBLE);
//高管是没有修改公会名称权限的,只有房主和超管才有
setSettingOption((HallDataManager.get().getRoleType() == RoleType.OWNER && isSelfHall) || clanAndHallInfo.isManageHall());
if (hallInfo != null && hallInfo.getHallId() != 0) {

View File

@@ -146,6 +146,7 @@
android:textSize="14sp" />
<TextView
android:visibility="invisible"
android:id="@+id/tv_manage_setup"
android:layout_width="0dp"
android:layout_height="wrap_content"